UI Change Request

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

UI Change Request

Post 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.
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: UI Change Request

Post 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 */
  }
Former Nagios employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: UI Change Request

Post 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
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: UI Change Request

Post 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.
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: UI Change Request

Post by Box293 »

I agree with rajasegar, this would be a good improvement to the CCM interface.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: UI Change Request

Post 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
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: UI Change Request

Post by tmcdonald »

Looks correct to me. I'll go ahead and put in a feature request for this. Gonna close up the thread now.
Former Nagios employee
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: UI Change Request

Post by scottwilkerson »

This feature will be included in 2014R1.2
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked