blob: 59acf212a8010ac5c06d2d1cf90fb5a7049b56f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<div>
<div class="btn-group pull-right">
<a href="?do=Locations&page=locations" class="btn btn-default {{perms.location.view.disabled}}">
<span class="glyphicon glyphicon-home"></span>
{{lang_thisListByLocation}}
</a>
<a href="?do=Locations&page=subnets" class="btn btn-default active">
<span class="glyphicon glyphicon-list-alt"></span>
{{lang_thisListBySubnet}}
</a>
</div>
<h1>{{lang_listOfSubnets}}</h1>
<form method="post" action="?do=Locations">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="page" value="subnets">
<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 class="cidrmagic">
<td>{{subnetid}}</td>
<td><input class="form-control cidrstart" type="text" name="startaddr[{{subnetid}}]" value="{{startaddr}}"></td>
<td><input class="form-control cidrend" type="text" name="endaddr[{{subnetid}}]" value="{{endaddr}}"></td>
<td>
<select class="form-control" name="location[{{subnetid}}]">
{{#locations}}
<option {{disabled}} value="{{locationid}}" {{#selected}}selected="selected"{{/selected}}>{{locationpad}} {{locationname}}</option>
{{/locations}}
</select>
</td>
</tr>
{{/list}}
</table>
<div class="text-right" style="margin-bottom: 20px">
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
</div>
</form>
</div>
|