summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/templates
diff options
context:
space:
mode:
authorSimon Rettberg2019-05-02 10:47:53 +0200
committerSimon Rettberg2019-05-23 12:19:33 +0200
commit352c9268ad0e9259519bdbde77239b9aea678e06 (patch)
treee5389d14bc238b5669f867fe5712d7c4c8749aee /modules-available/locations/templates
parent[statistics] Update translations (diff)
downloadslx-admin-352c9268ad0e9259519bdbde77239b9aea678e06.tar.gz
slx-admin-352c9268ad0e9259519bdbde77239b9aea678e06.tar.xz
slx-admin-352c9268ad0e9259519bdbde77239b9aea678e06.zip
[locations] subnet inputs: disabled -> readonly; disable save button
There was unfinished code to disable the save button if there are no actions allowed to perform in the location detail box, which is now working. Also make the text inputs readonly instead of diabled if we're not allowed to edit them, so copy & paste still works.
Diffstat (limited to 'modules-available/locations/templates')
-rw-r--r--modules-available/locations/templates/location-subnets.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html
index 897f84b0..78ef99a0 100644
--- a/modules-available/locations/templates/location-subnets.html
+++ b/modules-available/locations/templates/location-subnets.html
@@ -40,8 +40,8 @@
{{#list}}
<tr class="cidrmagic">
<td>{{subnetid}}</td>
- <td><input {{perms.location.edit.subnets.disabled}} class="form-control cidrstart" type="text" name="startaddr[{{subnetid}}]" value="{{startaddr}}" pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"></td>
- <td><input {{perms.location.edit.subnets.disabled}} class="form-control cidrend" type="text" name="endaddr[{{subnetid}}]" value="{{endaddr}}" pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"></td>
+ <td><input {{perms.location.edit.subnets.readonly}} class="form-control cidrstart" type="text" name="startaddr[{{subnetid}}]" value="{{startaddr}}" pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"></td>
+ <td><input {{perms.location.edit.subnets.readonly}} class="form-control cidrend" type="text" name="endaddr[{{subnetid}}]" value="{{endaddr}}" pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"></td>
<td class="danger">
<div class="checkbox text-center" style="margin-left: 9px">
<input {{perms.location.edit.subnets.disabled}} type="checkbox" name="deletesubnet[{{subnetid}}]" value="on">
@@ -122,7 +122,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{lang_cancel}}</button>
- <button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
+ <button type="submit" class="btn btn-primary" {{perms.save_button.disabled}}><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
</div>
</div>
</div>