Change colour and name of Port Control toggle option in Device Port View

This commit is contained in:
Oliver Gorwits
2013-01-29 21:42:37 +00:00
parent 409523747a
commit 5f537af2fc
3 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
[ENHANCEMENTS] [ENHANCEMENTS]
* Device Port filter by vlan includes both tagging and untagged (closes #37) * Device Port filter by vlan includes both tagging and untagged (closes #37)
* Change colour and name of Port Control toggle option in Device Port View
[BUG FIXES] [BUG FIXES]

View File

@@ -10,7 +10,7 @@ use App::Netdisco::Util::Web (); # for sort_port
hook 'before' => sub { hook 'before' => sub {
# list of port detail columns # list of port detail columns
var('port_columns' => [ var('port_columns' => [
{ name => 'c_admin', label => 'Port Control', default => '' }, { name => 'c_admin', label => 'Admin Controls', default => '' },
{ name => 'c_port', label => 'Port', default => 'on' }, { name => 'c_port', label => 'Port', default => 'on' },
{ name => 'c_descr', label => 'Description', default => '' }, { name => 'c_descr', label => 'Description', default => '' },
{ name => 'c_type', label => 'Type', default => '' }, { name => 'c_type', label => 'Type', default => '' },

View File

@@ -56,7 +56,7 @@
<input type="checkbox" id="[% item.name %]" <input type="checkbox" id="[% item.name %]"
name="[% item.name %]"[% ' checked="checked"' IF params.${item.name} %] /> name="[% item.name %]"[% ' checked="checked"' IF params.${item.name} %] />
[% IF item.name == 'c_admin' %] [% IF item.name == 'c_admin' %]
<span class="label label-inverse">[% item.label %]</span> <span class="label label-info">[% item.label %]</span>
[% ELSE %] [% ELSE %]
[% item.label %] [% item.label %]
[% END %] [% END %]