summaryrefslogblamecommitdiffstats
path: root/modules-available/locations/templates/subnets.html
blob: 15fa28f2d103f14ad62e8aa1e0e6fc2eabbc3428 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                
                                                      
                                                             

                                                                                                                                                        










                                                                                                                                                                              
                                                                                            


                      
<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 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 value="{{locationid}}" {{#selected}}selected="selected"{{/selected}}>{{locationpad}} {{locationname}}</option>
							{{/locations}}
						</select>
					</td>
				</tr>
			{{/list}}
		</table>
		<div>
			<button type="submit" class="btn btn-primary">{{lang_save}}</button>
		</div>
	</form>
</div>