You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-05-02 13:08:57

joseluis.teixeira
Member
From: PT - GMR
Registered: 2013-05-07
Posts: 29

How-To :: Add impact dropdown to Simplified interface

GLPI does not allow to add Impact dropdown to the simplified interface by default.

There are scenarios where adding Impact makes sense.


NOTE
- Make a backup of the file before making any changes!
- Please be aware that changing default files will be overwritten when upgrading (document your changes!)



Find the file: <<GLPI_ROOT_FOLDER>>\glpi\templates\components\itilobject\selfservice.html.twig

Aprox. LINE 157 find the code:

               {{ fields.field(
                  'urgency',
                  item.dropdownUrgency({
                     'value': params['urgency'],
                     'width': '100%',
                     'display': false,
                     'required': right_field_options.fields_template.isMandatoryField('urgency'),
                  }),
                  __('Urgency'),
                  right_field_options
               ) }}

AND ADD:

<!-- START - ADD IMPACT TO SIMPLIFIED INTERFACE -->
		{{ fields.field(
                  'impact',
                  item.dropdownImpact({
                     'value': params['impact'],
                     'width': '100%',
                     'display': false,
                     'required': right_field_options.fields_template.isMandatoryField('impact'),
                  }),
                  __('Impact'),
                  right_field_options
               ) }}
<!-- END - ADD IMPACT TO SIMPLIFIED INTERFACE -->	

This should result in something like this:
bb-glpi-impact.jpg

And looking like this:
bb-glpi-impact0.jpg

Offline

Board footer

Powered by FluxBB