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 2023-12-20 10:38:00

keoliscaen
Member
Registered: 2023-12-19
Posts: 2

How to modify the (default) HTML code of a plugin ( genericobjects )

Hello,

I'm using GLPI version 10.0.10 and I've encountered a small problem with the HTML configuration of the site.

When I go to the computers section and select a PC to view the information, I end up with a large, flexible comment space that adapts to the length of the comment.


But when I go to the peripheralsimmo/genericobjects menu and want to view the information and commentary, I end up with a truncated commentary space that doesn't fit the size of the text at all. To view the whole comment, I have to click on it and shift with the keyboard arrow.

Comparing the 2 menus via my browser's inspector, I realize that in the html code of the computer menu I end up with class="form-control", which isn't present in the generic objects section.

Here is an example of code in the computer menu:

<textarea class="form-control " id="comment_2132617076" name="comment" rows="3" style="width: 100%;">test</textarea>

Here is an example of code in the genericobjetcs menu:

<input type="text" name="comment" value="1 - Demande 12864 - 31/05/2022 - Installation test">

In my web browser, when I add class="form-control" it works, of course when I close the browser it disappears.

So I'd like to be able to modify this default field to add class="form-control" for all genericobjects.

But I can't find the right file to do this, I'm not very good at web development, I don't know if it's a .php file or a .twig file that needs to be modified.

If anyone knows what to change and especially in which file it would help me a lot.

Thanks in advance !

Offline

Board footer

Powered by FluxBB