diff options
author | Simon Rettberg | 2022-05-03 17:36:29 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-03 17:36:29 +0200 |
commit | b155c8167ddd5562f30fcfadd9eeb60d80e2619e (patch) | |
tree | cfbb0fda2f4aeadc24a0cbb010f975e3c10ee779 /modules-available/locations | |
parent | [eventlog] Add de translations (diff) | |
download | slx-admin-b155c8167ddd5562f30fcfadd9eeb60d80e2619e.tar.gz slx-admin-b155c8167ddd5562f30fcfadd9eeb60d80e2619e.tar.xz slx-admin-b155c8167ddd5562f30fcfadd9eeb60d80e2619e.zip |
[locations/news] Add per-location news/help/loginscreentext
Diffstat (limited to 'modules-available/locations')
-rw-r--r-- | modules-available/locations/pages/details.inc.php | 1 | ||||
-rw-r--r-- | modules-available/locations/templates/location-subnets.html | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/modules-available/locations/pages/details.inc.php b/modules-available/locations/pages/details.inc.php index d2ec7b24..77f96221 100644 --- a/modules-available/locations/pages/details.inc.php +++ b/modules-available/locations/pages/details.inc.php @@ -342,6 +342,7 @@ class SubPage 'locationname' => $loc['locationname'], 'list' => $rows, 'roomplanner' => Module::get('roomplanner') !== false, + 'news' => Module::get('news') !== false && User::hasPermission('.news.*', $loc['locationid']), 'parents' => Location::getLocations($loc['parentlocationid'], $locationId, true) ); diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html index 85c5a744..976c3cc7 100644 --- a/modules-available/locations/templates/location-subnets.html +++ b/modules-available/locations/templates/location-subnets.html @@ -91,6 +91,12 @@ <span class="glyphicon glyphicon-time"></span> {{lang_openingTime}} </button> + {{#news}} + <a class="btn btn-default" href="?do=news&locationid={{locationid}}"> + <span class="glyphicon glyphicon-pencil"></span> + {{lang_editNews}} + </a> + {{/news}} {{#roomplanner}} <a class="btn btn-default" href="?do=roomplanner&locationid={{locationid}}" target="_blank" onclick="window.open(this.href, '_blank', 'toolbar=0,scrollbars,resizable');return false"> |