freifunkmanager/public/app/node.jade

26 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-07-06 22:52:31 +02:00
.container
.page-header
h1 {{node.nodeinfo.hostname}}
small {{nodeid}}
2016-07-12 08:44:38 +02:00
2016-07-06 22:52:31 +02:00
form(name="rowForm",ng-submit="save()")
2016-07-12 08:44:38 +02:00
.form-group
label Online
p.form-control-static
span.glyphicon(ng-class="{'glyphicon-ok':node.flags.online,'glyphicon-remove':!node.flags.online}")
span(am-time-ago="node.lastseen")
2016-07-06 22:52:31 +02:00
.form-group(ng-class="rowForm.group.$invalid ? 'has-error' : ''")
label(for="formGroup") Group
input.form-control(id="formGroup",placeholder="Group",type="text",name="group",pattern="[a-zA-Z0-9-]*",ng-model='node.nodeinfo.owner.contact')
.form-group(ng-class="rowForm.hostname.$invalid ? 'has-error' : ''")
label(for="formHostname") Hostname
input.form-control(id="formHostname",placeholder="Hostname",type="text",name="hostname",pattern="[a-zA-Z0-9-]*",ng-model='node.nodeinfo.hostname',required)
2016-07-09 10:15:03 +02:00
leaflet.map.node(geojson="geojson",center="center",markers="markers",event-broadcast="events")
2016-07-06 22:52:31 +02:00
button.btn.btn-default(type="submit")
span.glyphicon.glyphicon-floppy-disk(aria-hidden="true")
| Save
2016-07-09 10:15:03 +02:00
span.btn.btn-default(ng-click="gps()")
2016-07-06 22:52:31 +02:00
span.glyphicon.glyphicon-map-marker(aria-hidden="true")
| GPS