]> git.ipfire.org Git - ipfire-2.x.git/commit
dhcp.cgi: Update to naming of variables in css section
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 6 Mar 2023 17:04:23 +0000 (18:04 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 11 Mar 2023 16:30:39 +0000 (16:30 +0000)
commitd3aec71828b56614fa08387c33080a6f425e3ce5
treec3186edf9fd44ea655ba5d161da30ad875f3f07e
parent83f31dcef217d5d3d2c62d9e4a0608f6877850f3
dhcp.cgi: Update to naming of variables in css section

- After looking at other .cgi files I realised that I had named the variables based on
   their dhcp usage only. However colouryellow or color20 etc can be used not only in a
   row but also in a cell or a column. Rather than ending up with multiple copies of the
   same colour for rows, cells, columns etc I have simplified the variable names to just
   the colour. They can then be used in whatever situation is wanted. The rest of the cgi
   code will give the view of what structure the colour is being applied to.
- This will limit the number of different css variables defined in the header.pl file

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
config/cfgroot/header.pl
html/cgi-bin/dhcp.cgi [changed mode: 0644->0755]