Wireless AP Reports (jeneric)
Squashed commit of the following: commit 567df500f45bca6ead1a1f8b7698253450ad1cb5 Author: Oliver Gorwits <oliver@cpan.org> Date: Tue Sep 10 22:26:48 2013 +0100 collapse list if more than 10 APs commit 9dddb2432c1a44d19f4cacc75d64e91feb71e665 Author: Eric A. Miller <emiller@cpan.org> Date: Mon Sep 9 22:35:28 2013 -0400 add port descr commit eca417c46ab7dd07a66054ec0104e62b5099748b Author: Oliver Gorwits <oliver@cpan.org> Date: Mon Sep 9 21:55:49 2013 +0100 use real port description, and link to filtered ports view commit e4a43e78ffefa3cd3ad528ac7414dcd959beceaa Author: Eric A. Miller <emiller@cpan.org> Date: Sun Sep 8 23:43:42 2013 -0400 add access point channel distribution report commit b6c803446d2bd02712910535c10a8ea3950ecd62 Author: Eric A. Miller <emiller@cpan.org> Date: Sun Sep 8 22:06:37 2013 -0400 sync module and file name commit c70d251a17a791fd34a3d58ce5373c97c7d7eba1 Author: Eric A. Miller <emiller@cpan.org> Date: Sun Sep 8 21:51:45 2013 -0400 perl tidy commit be8bc48d1ea9751164e167f155312f80ca0cf2d9 Author: Eric A. Miller <emiller@cpan.org> Date: Sun Sep 8 21:49:55 2013 -0400 report ap radio power in both mW and dBm commit 54a88054ab15ee8d0e884e919e040f9f8092824b Author: Eric A. Miller <emiller@cpan.org> Date: Sun Sep 8 15:47:18 2013 -0400 access point radios channel and power report
This commit is contained in:
17
Netdisco/share/views/ajax/report/apchanneldist.tt
Normal file
17
Netdisco/share/views/ajax/report/apchanneldist.tt
Normal file
@@ -0,0 +1,17 @@
|
||||
<table class="table table-bordered table-condensed table-striped nd_floatinghead">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="nd_center-cell">Channel</th>
|
||||
<th class="nd_center-cell">Count</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>
|
||||
[% WHILE (row = results.next) %]
|
||||
<tr>
|
||||
<td class="nd_center-cell">[% row.channel %]</td>
|
||||
<td class="nd_center-cell">[% row.get_column('ch_count') %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
52
Netdisco/share/views/ajax/report/apradiochannelpower.tt
Normal file
52
Netdisco/share/views/ajax/report/apradiochannelpower.tt
Normal file
@@ -0,0 +1,52 @@
|
||||
<div class="accordion" id="accordion-radio-pwr">
|
||||
[% count = 0 %]
|
||||
[% FOREACH row IN results.keys.sort %]
|
||||
[% count = count + 1 %]
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-target="#collapse-[% count %]" href="#collapse-[% count %]">
|
||||
<i class="[% row.size < 10 ? 'icon-chevron-down' : 'icon-chevron-up' %]"></i>
|
||||
[% results.$row.device.dns || results.$row.device.name %]
|
||||
( [% results.$row.device.model %] )
|
||||
[% IF results.$row.device.location %]
|
||||
Location: [% results.$row.device.location %]
|
||||
[% END %]
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapse-[% count %]" class="accordion-body collapse[% ' in' IF row.size < 10 %]">
|
||||
<div class="accordion-inner">
|
||||
<table class="table table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Port</th>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th class="nd_center-cell">Channel</th>
|
||||
<th class="nd_center-cell">Tx Power (mW/dBm)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOREACH p IN results.$row.ports %]
|
||||
[% NEXT UNLESS p.channel # No channel port is admin down %]
|
||||
<tr>
|
||||
<td>
|
||||
<a href="[% device_ports %]&q=[% results.$row.device.dns || results.$row.device.ip | uri %]&f=[% p.port | uri %]">
|
||||
[% p.port | html_entity %]</a></td>
|
||||
<td>[% p.name %]</td>
|
||||
<td>[% p.descr %]</td>
|
||||
<td class="nd_center-cell">[% p.channel %]</td>
|
||||
<td class="nd_center-cell">[% IF p.power or p.power2 %][% p.power %] / [% p.power2 %][% END %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
[%END%]
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$('.accordion').on('show hide', function (n) {
|
||||
$(n.target).siblings('.accordion-heading').find('.accordion-toggle i').toggleClass('icon-chevron-up icon-chevron-down');
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user