summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/templates/location-subnets.html
diff options
context:
space:
mode:
authorSimon Rettberg2018-02-27 17:02:40 +0100
committerSimon Rettberg2018-02-27 17:02:40 +0100
commit873d6af8bc843c6eea6049ace2f5218a371f01d4 (patch)
tree5b85346b327d9397ab3c2faa224c54bc43dd4295 /modules-available/locations/templates/location-subnets.html
parent[dnbd3] Implement permissions (diff)
downloadslx-admin-873d6af8bc843c6eea6049ace2f5218a371f01d4.tar.gz
slx-admin-873d6af8bc843c6eea6049ace2f5218a371f01d4.tar.xz
slx-admin-873d6af8bc843c6eea6049ace2f5218a371f01d4.zip
[roomplanner] Add permissions
Diffstat (limited to 'modules-available/locations/templates/location-subnets.html')
-rw-r--r--modules-available/locations/templates/location-subnets.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html
index 9db75f0b..db94be0a 100644
--- a/modules-available/locations/templates/location-subnets.html
+++ b/modules-available/locations/templates/location-subnets.html
@@ -75,9 +75,11 @@
</div>
<div class="col-md-4 text-center">
{{#roomplanner}}
- <a class="btn btn-default {{perms.roomplanner.edit.disabled}}" href="?do=roomplanner&amp;locationid={{locationid}}" target="_blank"
+ <a class="btn btn-default" href="?do=roomplanner&amp;locationid={{locationid}}" target="_blank"
onclick="window.open(this.href, '_blank', 'toolbar=0,scrollbars,resizable');return false">
- <span class="glyphicon glyphicon-move"></span> {{lang_editRoomplan}}
+ <span class="glyphicon glyphicon-move"></span>
+ {{^perms.roomplanner.edit.disabled}}{{lang_editRoomplan}}{{/perms.roomplanner.edit.disabled}}
+ {{#perms.roomplanner.edit.disabled}}{{lang_showRoomplan}}{{/perms.roomplanner.edit.disabled}}
</a>
{{/roomplanner}}
</div>