summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/templates/location-subnets.html
diff options
context:
space:
mode:
authorSimon Rettberg2016-05-03 19:03:09 +0200
committerSimon Rettberg2016-05-03 19:03:09 +0200
commit50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66 (patch)
tree05e99fdffa696434960d7c77966c0bc36d6339e8 /modules-available/locations/templates/location-subnets.html
parentSecond half of merge.... (diff)
downloadslx-admin-50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66.tar.gz
slx-admin-50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66.tar.xz
slx-admin-50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66.zip
WIP
Diffstat (limited to 'modules-available/locations/templates/location-subnets.html')
-rw-r--r--modules-available/locations/templates/location-subnets.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html
new file mode 100644
index 00000000..76b7442a
--- /dev/null
+++ b/modules-available/locations/templates/location-subnets.html
@@ -0,0 +1,73 @@
+<div class="slx-well">
+ <div class="slx-bold">{{lang_locationSettings}}</div>
+ <form method="post" action="?do=Locations">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="updatelocation">
+ <input type="hidden" name="locationid" value="{{locationid}}">
+ <div style="display:none">
+ <button type="submit" class="btn btn-primary">Save</button>
+ </div>
+ <div class="row">
+ <div class="col-sm-6">
+ <div class="input-group">
+ <span class="input-group-addon slx-ga2">{{lang_name}}</span>
+ <input class="form-control" type="text" name="locationname" value="{{locationname}}" pattern=".*\S.*">
+ </div>
+ </div>
+ <div class="col-sm-6">
+ <div class="input-group">
+ <span class="input-group-addon slx-ga2">{{lang_parentLocation}}</span>
+ <select class="form-control" name="parentlocationid">
+ {{#parents}}
+ <option value="{{locationid}}" {{#selected}}selected="selected"{{/selected}}>{{locationpad}} {{locationname}}</option>
+ {{/parents}}
+ </select>
+ </div>
+ </div>
+ </div>
+ <div>
+ <div class="pull-right">
+ <label><input type="checkbox" name="recursive" value="on"> {{lang_deleteChildLocations}}</label>
+ <button type="submit" class="btn btn-sm btn-danger" name="deletelocation" value="{{locationid}}" onclick="return slxConfirm()">{{lang_deleteLocation}}</button>
+ </div>
+ <div class="clearfix"></div>
+ </div>
+ <br>
+ <div class="slx-bold">{{lang_assignedSubnets}}</div>
+ <div><i>{{lang_assignSubnetExplanation}}</i></div>
+ <table class="table table-condensed table-striped">
+ <tr>
+ <th>#</th>
+ <th>{{lang_startAddress}}</th>
+ <th>{{lang_endAddress}}</th>
+ <th title="{{lang_deleteSubnet}}"><span class="glyphicon glyphicon-trash"></span></th>
+ </tr>
+ {{#list}}
+ <tr>
+ <td>{{subnetid}}</td>
+ <td><input class="form-control" type="text" name="startaddr[{{subnetid}}]" value="{{startaddr}}" pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"></td>
+ <td><input class="form-control" type="text" name="endaddr[{{subnetid}}]" value="{{endaddr}}" pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"></td>
+ <td class="danger" align="center"><input type="checkbox" name="deletesubnet[{{subnetid}}]" value="on"></td>
+ </tr>
+ {{/list}}
+ <tr id="loc-sub-{{locationid}}">
+ <td colspan="2">
+ <button class="btn btn-success btn-sm" type="button" onclick="slxAddSubnetRow(this, {{locationid}})" title="{{lang_addNewSubnet}}">
+ <span class="glyphicon glyphicon-plus-sign"></span> {{lang_subnet}}
+ </button>
+ </td>
+ <td colspan="2" align="right">
+ <button type="submit" class="btn btn-primary">{{lang_save}}</button>
+ </div>
+ </tr>
+ </table>
+ </form>
+ <br>
+ <div class="slx-bold">{{lang_locationInfo}}</div>
+ <div>
+ <span class="slx-ga2">{{lang_referencingLectures}}:</span> {{lectures}}
+ </div>
+ <div>
+ <span class="slx-ga2">{{lang_matchingMachines}}:</span> <a href="?do=Statistics&amp;filter=location&amp;argument={{locationid}}">{{machines}} / {{machines_online}} / {{machines_used}} ({{used_percent}}%)</a>
+ </div>
+</div> \ No newline at end of file