summaryrefslogtreecommitdiffstats
path: root/templates/locations/subnets.html
diff options
context:
space:
mode:
authorSimon Rettberg2016-02-19 15:01:56 +0100
committerSimon Rettberg2016-02-19 15:01:56 +0100
commit317db874e7964231ac33b5646cc33b1b400a4f29 (patch)
tree6a1be1c286070ec9f3fd181ccb8fe4fecf47b2fb /templates/locations/subnets.html
parent[clientlog] Sanity checks for timestamps (diff)
downloadslx-admin-317db874e7964231ac33b5646cc33b1b400a4f29.tar.gz
slx-admin-317db874e7964231ac33b5646cc33b1b400a4f29.tar.xz
slx-admin-317db874e7964231ac33b5646cc33b1b400a4f29.zip
[locations] New module for managing locations
Diffstat (limited to 'templates/locations/subnets.html')
-rw-r--r--templates/locations/subnets.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/locations/subnets.html b/templates/locations/subnets.html
new file mode 100644
index 00000000..2294f42b
--- /dev/null
+++ b/templates/locations/subnets.html
@@ -0,0 +1,35 @@
+<div>
+ <div class="pull-right">
+ <a href="?do=Locations&amp;action=showlocations">{{lang_thisListByLocation}}</a>
+ </div>
+ <h1>{{lang_listOfSubnets}}</h1>
+ <form method="post" action="?do=Locations">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="updatesubnets">
+ <table class="table table-condensed table-striped">
+ <tr>
+ <th>#</th>
+ <th>{{lang_startAddress}}</th>
+ <th>{{lang_endAddress}}</th>
+ <th>{{lang_location}}</th>
+ </tr>
+ {{#list}}
+ <tr>
+ <td>{{subnetid}}</td>
+ <td><input class="form-control" type="text" name="startaddr[{{subnetid}}]" value="{{startaddr}}"></td>
+ <td><input class="form-control" type="text" name="endaddr[{{subnetid}}]" value="{{endaddr}}"></td>
+ <td>
+ <select class="form-control" name="location[{{subnetid}}]">
+ {{#locations}}
+ <option value="{{locationid}}" {{#selected}}selected="selected"{{/selected}}>{{locationpad}} {{locationname}}</option>
+ {{/locations}}
+ </select>
+ </td>
+ </tr>
+ {{/list}}
+ </table>
+ <div>
+ <button type="submit" class="btn btn-primary">Späschohn (geht noch nicht!)</button>
+ </div>
+ </form>
+</div>