freifunkmanager/public/app/nodes/nodesSort.jade

63 lines
4.0 KiB
Plaintext
Raw Normal View History

table.table.table-striped.table-condensed(ng-table="tableParams")
tr(ng-repeat='row in $data track by row.nodeid',ng-class="{'danger':!row.flags.online}",ng-form="rowForm")
2016-07-06 22:52:31 +02:00
td(data-title="'Last'",sortable="'lastseen'", am-time-ago="row.lastseen")
td(data-title="'ID'", filter="{nodeid: 'text'}", sortable="'nodeid'") {{row.nodeid}}
td(data-title="'Group'",sortable="'nodeinfo.owner.contact'",filter="{'nodeinfo.owner.contact': 'text'}",ng-switch="row.isEditing")
span(ng-switch-default) {{row.nodeinfo.owner.contact}}
div.controls(ng-switch-when="true",ng-class="rowForm.group.$invalid ? 'has-error' : ''")
input.editable-input.form-control.input-sm(type="text",name="group",pattern="[a-zA-Z0-9-]*",ng-model='row.nodeinfo.owner.contact')
td(data-title="'Hostname'", filter="{'nodeinfo.hostname': 'text'}", sortable="'nodeinfo.hostname'",ng-switch="row.isEditing")
span(ng-switch-default) {{row.nodeinfo.hostname}}
div.controls(ng-switch-when="true",ng-class="rowForm.hostname.$invalid ? 'has-error' : ''")
input.editable-input.form-control.input-sm(type="text" name="hostname",pattern="[a-zA-Z0-9-]*",ng-model='row.nodeinfo.hostname',required)
td(data-title="'Load'") {{row.statistics.loadavg|number}}
//td(data-title="'First'",sortable="'firstseen'", am-time-ago="row.firstseen")
2016-07-06 22:52:31 +02:00
td.split.text-right(data-title="'Freq'")
span 2.4 Ghz
span 5 Ghz
td.text-right.split(data-title="'Channel'",filter="{'nodeinfo.wireless.channel5': 'number'}",ng-switch="row.isEditing")
2016-07-06 22:52:31 +02:00
span(ng-switch-default) {{row.nodeinfo.wireless.channel24}}
div.controls(ng-switch-when="true",ng-class="rowForm.channel24.$invalid ? 'has-error' : ''")
input.editable-input.form-control.input-sm(type="text" name="channel24",ng-model='row.nodeinfo.wireless.channel24',required)
span(ng-switch-default) {{row.nodeinfo.wireless.channel5}}
div.controls(ng-switch-when="true",ng-class="rowForm.channel5.$invalid ? 'has-error' : ''")
input.editable-input.form-control.input-sm(type="text" name="channel5",ng-model='row.nodeinfo.wireless.channel5',required)
2016-07-16 16:12:37 +02:00
td.text-right.split(data-title="'CurChannel'")
span {{row.current.wireless.channel24}}
span {{row.current.wireless.channel5}}
td.split.text-right(data-title="'Clients'")
span {{row.statistics.clients.wifi24}}
span {{row.statistics.clients.wifi5}}
td.text-right.split(data-title="'ChanUtil'")
span {{row.statistics.wireless.airtime24.ChanUtil|number}}
span {{row.statistics.wireless.airtime5.ChanUtil|number}}
td.text-right.split(data-title="'Power'",ng-switch="row.isEditing")
2016-07-06 22:52:31 +02:00
span(ng-switch-default) {{row.nodeinfo.wireless.txpower24}}
div.controls(ng-switch-when="true",ng-class="rowForm.txpower24.$invalid ? 'has-error' : ''")
input.editable-input.form-control.input-sm(type="text" name="txpower24",ng-model='row.nodeinfo.wireless.txpower24',required)
span(ng-switch-default) {{row.nodeinfo.wireless.txpower5}}
2016-07-06 22:52:31 +02:00
div.controls(ng-switch-when="true",ng-class="rowForm.txpower5.$invalid ? 'has-error' : ''")
input.editable-input.form-control.input-sm(type="text" name="txpower5",ng-model='row.nodeinfo.wireless.txpower5',required)
td.text-right.split(data-title="'CurPower'")
span {{row.current.wireless.txpower24}}
span {{row.current.wireless.txpower5}}
2016-07-06 22:52:31 +02:00
td(data-title="'Options'")
.btn.btn-success.btn-sm(ng-click="save(row, rowForm)",ng-if="row.isEditing",ng-disabled="rowForm.$pristine || rowForm.$invalid")
span.glyphicon.glyphicon-ok
.btn.btn-warning.btn-sm(ng-click="cancel(row, rowForm)",ng-if="row.isEditing")
span.glyphicon.glyphicon-remove
.btn.btn-primary.btn-sm(ng-click="row.isEditing = true",ng-if="!row.isEditing")
span.glyphicon.glyphicon-pencil
2016-07-09 10:15:03 +02:00
a.btn.btn-default(ui-sref="app.node({nodeid: row.nodeid})")
span.glyphicon.glyphicon-qrcode
2016-07-13 20:47:26 +02:00
tr
td(colspan=5) Online: {{sum.online}}/{{sum.all}}
td.split.text-right(data-title="'Freq'")
span 2.4 Ghz
span 5 Ghz
2016-07-16 16:12:37 +02:00
td(colspan=2)
td.text-right.split
2016-07-13 20:47:26 +02:00
span {{sum.client24}}
span {{sum.client5}}
td(colspan=4)