Change colour and name of Port Control toggle option in Device Port View
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
[ENHANCEMENTS]
|
||||
|
||||
* 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]
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ use App::Netdisco::Util::Web (); # for sort_port
|
||||
hook 'before' => sub {
|
||||
# list of port detail 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_descr', label => 'Description', default => '' },
|
||||
{ name => 'c_type', label => 'Type', default => '' },
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<input type="checkbox" id="[% item.name %]"
|
||||
name="[% item.name %]"[% ' checked="checked"' IF params.${item.name} %] />
|
||||
[% IF item.name == 'c_admin' %]
|
||||
<span class="label label-inverse">[% item.label %]</span>
|
||||
<span class="label label-info">[% item.label %]</span>
|
||||
[% ELSE %]
|
||||
[% item.label %]
|
||||
[% END %]
|
||||
|
||||
Reference in New Issue
Block a user