diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-12-19 13:58:35 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-20 09:42:54 +0300 |
commit | 2beab3e864ef46aadf2a5e4e910559b09787dec7 (patch) | |
tree | 8ef410c121d4cdc0b0f644657f0ba32ebcb6c391 /templates/admin.php | |
parent | 2674e621e33612114f335cf791374d91b1f8353d (diff) |
Disable template selector and settings if the capability is not available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'templates/admin.php')
-rw-r--r-- | templates/admin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/admin.php b/templates/admin.php index 566da894..98142e59 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -52,6 +52,7 @@ script('files', 'jquery.fileupload'); <p class="rd-settings-documentation"><em><?php p($l->t('Canonical webroot, in case there are multiple, for Collabora to use. Provide the one with least restrictions. Eg: Use non-shibbolized webroot if this instance is accessed by both shibbolized and non-shibbolized webroots. You can ignore this setting if only one webroot is used to access this instance.')) ?></em></p> </div> </div> +<?php if ($_['templatesAvailable'] === true) { ?> <form class="section" id="richdocuments-templates" method="post" action="/template/"> <input class="hidden-visually" id="add-template" type="file" /> <h2> @@ -86,3 +87,4 @@ script('files', 'jquery.fileupload'); <?php } ?> </ul> </form> +<?php } ?> |