diff options
author | Simon Rettberg | 2021-03-17 15:54:07 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-03-17 15:54:07 +0100 |
commit | aaa738c7ffe5dfdc2e258d521b94117168c51943 (patch) | |
tree | c53d2d662bfa3af45bb85aeda7fa543ab9ead522 /modules-available/locations | |
parent | [locations/rebootcontrol] Change ENUM constants; display next event (diff) | |
download | slx-admin-aaa738c7ffe5dfdc2e258d521b94117168c51943.tar.gz slx-admin-aaa738c7ffe5dfdc2e258d521b94117168c51943.tar.xz slx-admin-aaa738c7ffe5dfdc2e258d521b94117168c51943.zip |
[locations] Add permission for openingtimes
Diffstat (limited to 'modules-available/locations')
-rw-r--r-- | modules-available/locations/lang/de/permissions.json | 1 | ||||
-rw-r--r-- | modules-available/locations/lang/en/permissions.json | 1 | ||||
-rw-r--r-- | modules-available/locations/templates/location-subnets.html | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/locations/lang/de/permissions.json b/modules-available/locations/lang/de/permissions.json index 8a9336b3..e8e3cced 100644 --- a/modules-available/locations/lang/de/permissions.json +++ b/modules-available/locations/lang/de/permissions.json @@ -2,6 +2,7 @@ "location.add": "R\u00e4ume\/Orte hinzuf\u00fcgen.", "location.delete": "R\u00e4ume\/Orte l\u00f6schen.", "location.edit.name": "Orte umbenennen.", + "location.edit.openingtimes": "\u00d6ffnungszeiten bearbeiten.", "location.edit.parent": "Den \u00fcbergeordneten Ort eines Ortes \u00e4ndern.", "location.edit.subnets": "Die IP-Ranges eines Ortes \u00e4ndern.", "location.view": "R\u00e4ume anschauen.", diff --git a/modules-available/locations/lang/en/permissions.json b/modules-available/locations/lang/en/permissions.json index 1d01a9d1..c9f7a3ab 100644 --- a/modules-available/locations/lang/en/permissions.json +++ b/modules-available/locations/lang/en/permissions.json @@ -2,6 +2,7 @@ "location.add": "Add locations.", "location.delete": "Delete locations.", "location.edit.name": "Rename locations.", + "location.edit.openingtimes": "Edit opening times.", "location.edit.parent": "Change the parent location of a location.", "location.edit.subnets": "Edit the IP ranges of a location.", "location.view": "View locations.", diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html index 8a9b1c99..80e63abf 100644 --- a/modules-available/locations/templates/location-subnets.html +++ b/modules-available/locations/templates/location-subnets.html @@ -87,7 +87,7 @@ {{/next_action}} </div> <div class="col-md-7 text-right"> - <button type="button" class="btn btn-default" data-toggle="modal" data-target="#openingTimesModal{{locationid}}" onclick="loadOpeningTimes('{{locationid}}')"> + <button {{perms.location.edit.openingtimes.disabled}} type="button" class="btn btn-default" data-toggle="modal" data-target="#openingTimesModal{{locationid}}" onclick="loadOpeningTimes('{{locationid}}')"> <span class="glyphicon glyphicon-time"></span> {{lang_openingTime}} </button> |