Skip to content

enhance status display #2508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

btry
Copy link
Collaborator

@btry btry commented Dec 20, 2021

Use Common ITILObject statuses instead of icons (.png) provided by the plugin

image

image

@btry btry changed the title Remove forced layout, enhance status sdisplay enhance status sdisplay Dec 20, 2021
@btry btry changed the title enhance status sdisplay enhance status display Dec 20, 2021
> div {
margin-bottom: 10px;
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conflicts with cards : main area and cards on the right (my last forms) overlap

@btry btry force-pushed the bugfix/status_enhancements branch from 5a4223c to 98606a2 Compare December 21, 2021 08:14
@@ -823,38 +811,35 @@ a.plugin_formcreator_formTile_title {
}

#plugin_formcreator_lastForms {
.plugin_formcreator_card {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specifying .plugin_formcreator_card is useless.

echo '<li data-itemtype="PluginFormcreatorFormanswer" data-id="' . $formAnswer['id'] . '">';
echo '<i class="'.$status.'"></i><a href="formanswer.form.php?id='.$formAnswer['id'].'">'.$formAnswer['name'].'</a>';
echo '<span class="plugin_formcreator_date">'.Html::convDateTime($formAnswer['request_date']).'</span>';
echo '</li>';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deindent the lines : 1 level; show status with Font Awesome

@@ -1082,21 +1085,24 @@ protected function showMyLastForms() : void {
echo '<div class="card-body text-center text-muted" >'.__('No form waiting for validation', 'formcreator').'</div>';
} else {
echo '<div class="card-body">';
echo '<ul>';
echo '<ul class="list-group">';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class was missing; see the 1st card in showMyLastForms() (a few dozens line above)

@btry btry merged commit e87cbdb into pluginsGLPI:support/2.13.0 Dec 21, 2021
@btry btry deleted the bugfix/status_enhancements branch December 21, 2021 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants