You are not logged in.
Pages: 1
Need to modify the color of the line, if the ticket status is New. Example:
If Status = New then
Line should be green
Last edited by mbarbosa (2014-09-02 23:30:54)
Offline
Either:
- edit the code;
- java script add-on outside GLPI code;
- if only for yourself, Greasemonkey or similar.
Offline
'the line'?!? seriously?
GLPI 0.84.7 with FusionInventory on LAMP 14.04.1 LTS
~150 clients
Offline
I think 'line' doesn't mean border of the "cell" but background or font color .
@mbarbosa : having different color for status, like different colors for priority. Am I right ?
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
La DENREE:
You're right. When the status is equal to New, then GLPI should paint the TR table with green background.
I'm having trouble knowing in which file or files I should edit or is there some configuration to do in GLPI.
Offline
geoalbi:
Greasemonkey is not good for me.
I would like to edit the code or configure GLPI.
The problem is... I don't which file needs to be edited, or what settings should I do in GLPI.
Offline
Hi,
Glpi version ?
the table is created by the seach class (function showShort).
You have to create a new css for <tr> for example (that is the idea, not correct syntax)
.tr_status_new{bgcolor=green...}
.tr_status_plan{bgcolor=white...}
.tr_status_assign{bgcolor=blue...}
.tr_status_solved{bgcolor=...}
then modifiy the search class to set the tr class according to the ticket status.
Last edited by LaDenrée (2014-09-04 10:52:24)
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
Could you be more detailed, please?
Last edited by mbarbosa (2014-09-05 05:02:12)
Offline
could you precise your glpi version ?
are you familar with CSS ?
are you familar with PHP ?
in wich screen do you want the "row background color" to be "status dependant" ?
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
Hello. Reviving an old topic, but it intrigues me - we have the latest GLPI version 10.0.7 in the company. I would like new reports and their updates to be marked with a different color. Just like in the subject.
I'm familiar with PHP and CSS, but I'm not an expert. I need guidance on how to do this. Thank you in advance!
Offline
Pages: 1