summaryrefslogtreecommitdiffstats
path: root/settings/templates/admin
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-09-08 09:13:59 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-09-08 18:44:27 +0200
commit6bb95de1c50208d6cbaf1242f86a2fdab09c2246 (patch)
tree47fa17b753a672e6d93c2186c517df2fd5b355b2 /settings/templates/admin
parentb3d3a95bf3e11a4689884f72f6d6021d4dcff97c (diff)
downloadnextcloud-server-6bb95de1c50208d6cbaf1242f86a2fdab09c2246.tar.gz
nextcloud-server-6bb95de1c50208d6cbaf1242f86a2fdab09c2246.zip
Adding a optional disclaimer to the anonymous upload page
Diffstat (limited to 'settings/templates/admin')
-rw-r--r--settings/templates/admin/sharing.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/settings/templates/admin/sharing.php b/settings/templates/admin/sharing.php
index b8f8e920246..1c47d74770f 100644
--- a/settings/templates/admin/sharing.php
+++ b/settings/templates/admin/sharing.php
@@ -95,7 +95,7 @@
<label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing'));?></label><br/>
</p>
<p id="selectExcludedGroups" class="indent <?php if (!$_['shareExcludeGroups'] || $_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
- <input name="shareapi_exclude_groups_list" type="hidden" id="excludedGroups" value="<?php p($_['shareExcludedGroupsList']) ?>" style="width: 400px"/>
+ <input name="shareapi_exclude_groups_list" type="hidden" id="excludedGroups" value="<?php p($_['shareExcludedGroupsList']) ?>" style="width: 400px" class="noJSAutoUpdate"/>
<br />
<em><?php p($l->t('These groups will still be able to receive shares, but not to initiate them.')); ?></em>
</p>
@@ -104,4 +104,12 @@
<?php if ($_['allowShareDialogUserEnumeration'] === 'yes') print_unescaped('checked="checked"'); ?> />
<label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog. If this is disabled the full username needs to be entered.'));?></label><br />
</p>
+ <p>
+ <input type="checkbox" id="publicShareDisclaimer" class="checkbox noJSAutoUpdate"
+ <?php if ($_['publicShareDisclaimerText'] !== null) print_unescaped('checked="checked"'); ?> />
+ <label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page. (Only shown when the file list is hidden.)'));?></label>
+ <span id="publicShareDisclaimerStatus" class="msg" style="display:none"></span>
+ <br/>
+ <textarea placeholder="This text will be shown on the public link upload page when the file list is hidden." id="publicShareDisclaimerText" <?php if ($_['publicShareDisclaimerText'] === null) { print_unescaped('class="hidden"'); } ?>><?php p($_['publicShareDisclaimerText']) ?></textarea>
+ </p>
</div>