Hide port column options which will be determined by ColVis, keep available for links and to enable override of ColVis saved state
This commit is contained in:
@@ -59,6 +59,7 @@
|
|||||||
<ul class="nd_inputs-list unstyled">
|
<ul class="nd_inputs-list unstyled">
|
||||||
[% FOREACH item IN vars.port_columns %]
|
[% FOREACH item IN vars.port_columns %]
|
||||||
[% NEXT IF item.name == 'c_admin' AND NOT user_has_role('port_control') %]
|
[% NEXT IF item.name == 'c_admin' AND NOT user_has_role('port_control') %]
|
||||||
|
[% IF item.name == 'c_admin' OR item.name == 'c_nodes' %]
|
||||||
<li>
|
<li>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" id="[% item.name | html_entity %]"
|
<input type="checkbox" id="[% item.name | html_entity %]"
|
||||||
@@ -70,6 +71,10 @@
|
|||||||
[% END %]
|
[% END %]
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
|
[% ELSE %]
|
||||||
|
<input type="checkbox" id="[% item.name | html_entity %]"
|
||||||
|
name="[% item.name | html_entity %]"[% ' checked="checked"' IF params.${item.name} %] style="display:none;" />
|
||||||
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user