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 2014-09-02 18:52:55

mbarbosa
Member
Registered: 2014-09-02
Posts: 4

Modify the color of the list of tickets

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

#2 2014-09-03 12:54:27

geoalbi
Member
From: Romania
Registered: 2012-12-18
Posts: 182

Re: Modify the color of the list of tickets

Either:
- edit the code;
- java script add-on outside GLPI code;
- if only for yourself, Greasemonkey or similar.

Offline

#3 2014-09-03 13:45:46

samcro
Member
From: Munich, Bavaria, Germany
Registered: 2013-04-24
Posts: 216

Re: Modify the color of the list of tickets

'the line'?!? seriously?


GLPI 0.84.7 with FusionInventory on LAMP 14.04.1 LTS
~150 clients

Offline

#4 2014-09-03 14:06:55

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: Modify the color of the list of tickets

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

#5 2014-09-04 03:38:01

mbarbosa
Member
Registered: 2014-09-02
Posts: 4

Re: Modify the color of the list of tickets

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

#6 2014-09-04 03:43:11

mbarbosa
Member
Registered: 2014-09-02
Posts: 4

Re: Modify the color of the list of tickets

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

#7 2014-09-04 10:51:41

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: Modify the color of the list of tickets

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

#8 2014-09-05 05:00:05

mbarbosa
Member
Registered: 2014-09-02
Posts: 4

Re: Modify the color of the list of tickets

Could you be more detailed, please?

Last edited by mbarbosa (2014-09-05 05:02:12)

Offline

#9 2014-09-05 08:19:06

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: Modify the color of the list of tickets

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

#10 2023-05-04 10:38:26

neomammut
Member
Registered: 2023-05-04
Posts: 1

Re: Modify the color of the list of tickets

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

Board footer

Powered by FluxBB