Page 1 of 1
UI Change Request
Posted: Tue May 27, 2014 6:13 am
by rajasegar
Nagios XI 2012R2.9
RHEL 6.5 x64
Manual Install
Almost all names in CCM is center justified and is a eyestrain.
CCM_UI.png
How can I make it left justified? I don't mind changing some php files.
Thanks.
Re: UI Change Request
Posted: Tue May 27, 2014 10:04 am
by tmcdonald
If you want all text fields (and the checkbox) to be left-justified, make the following changes to /usr/local/nagiosxi/html/includes/components/ccm/css/style.css:
Code: Select all
table.standardtable tbody tr.even td {
background-color: #EFEFEF;
text-align: left; /* Added */
}
table.standardtable tbody tr.odd td {
text-align: left; /* Added */
}
Re: UI Change Request
Posted: Tue May 27, 2014 6:14 pm
by rajasegar
tmcdonald wrote:If you want all text fields (and the checkbox) to be left-justified, make the following changes to /usr/local/nagiosxi/html/includes/components/ccm/css/style.css:
Code: Select all
table.standardtable tbody tr.even td {
background-color: #EFEFEF;
text-align: left; /* Added */
}
table.standardtable tbody tr.odd td {
text-align: left; /* Added */
}
Would have preferred just the name column but anyway still better than before. Thanks
Please close this ticket.
CCM_U_afterI.png
Re: UI Change Request
Posted: Wed May 28, 2014 9:02 am
by tmcdonald
Well, we can change these lines:
Change /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php from:
Code: Select all
<td><a href="javascript:actionPic('modify', '{$id}', '')" title="Modify">{$name}</a></td>
to
Code: Select all
<td class='name_left_align'><a href="javascript:actionPic('modify', '{$id}', '')" title="Modify">{$name}</a></td>
and revert the changes to /usr/local/nagiosxi/html/includes/components/ccm/css/style.css and change to:
Code: Select all
table.standardtable tbody tr.even td {
background-color: #EFEFEF;
}
table.standardtable tbody tr.odd td {
}
table.standardtable tbody tr td.name_left_align {
text-align: left;
}
adding a new class to the table cell and creating a new CSS rule for it.
Re: UI Change Request
Posted: Wed May 28, 2014 4:25 pm
by Box293
I agree with rajasegar, this would be a good improvement to the CCM interface.
Re: UI Change Request
Posted: Wed May 28, 2014 6:41 pm
by rajasegar
To summarise
vi /usr/local/nagiosxi/html/includes/components/ccm/css/style.css
Add the following code in line 302
table.standardtable tbody tr td.name_left_align {
text-align: left;
}
vi /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php
Change lines 187 & 188 to the following
<td class='name_left_align'><a href="javascript:actionPic('modify', '{$id}', '')" title="Modify">{$name}</a></td>
<td class='name_left_align'>{$clean_desc}</td>
You will now end up with left aligned name and alias.
CCM_U_after2.png
Re: UI Change Request
Posted: Thu May 29, 2014 9:14 am
by tmcdonald
Looks correct to me. I'll go ahead and put in a feature request for this. Gonna close up the thread now.
Re: UI Change Request
Posted: Wed Jun 18, 2014 8:06 pm
by scottwilkerson
This feature will be included in 2014R1.2