allow control ports list by port status

This commit is contained in:
Oliver Gorwits
2013-09-08 23:46:06 +01:00
parent 947614ddd8
commit 169242b29b
3 changed files with 41 additions and 12 deletions

View File

@@ -22,7 +22,7 @@
<i class="icon-remove"></i>
[% ELSIF row.stp == 'blocking' %]
<i class="icon-fullscreen text-info"></i>
[% ELSIF params.free OR row.is_free %]
[% ELSIF row.has_column('is_free') AND row.is_free %]
<i class="icon-arrow-down text-success"></i>
[% ELSIF row.up_admin == 'up' AND row.up == 'down' %]
<i class="icon-arrow-down text-error"></i>

View File

@@ -75,11 +75,15 @@
</select>
</li>
<li>
<label class="checkbox">
<input type="checkbox" id="free"
name="free"[% ' checked="checked"' IF params.free %]/>
Only show Free Ports
</label>
<em class="muted">Show Ports with Status:</em><br/>
<div class="clearfix">
<select class="nd_side-select" size="4" multiple="on" name="port_state"/>
<option selected="selected" value="up">Link Up</option>
<option selected="selected" value="free">Port Free</option>
<option selected="selected" value="down">Link Down</option>
<option selected="selected" value="shut">Admin Disabled</option>
</select>
</div>
</li>
</ul>
</div>