aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/templates
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-03-25 17:32:49 +0100
committerVincent Petry <vincent@nextcloud.com>2021-04-15 10:06:09 +0200
commitaf61486aea90cfc1a82301ce624dffb59ed01e07 (patch)
tree9b608272439503e0015ece40ae4b77013eabc81f /apps/settings/templates
parent2650da70caa73c8bf3119edebb37e91d67f3a214 (diff)
downloadnextcloud-server-af61486aea90cfc1a82301ce624dffb59ed01e07.tar.gz
nextcloud-server-af61486aea90cfc1a82301ce624dffb59ed01e07.zip
Separate settings for remote share expiration
Added separate settings for default and enforced expiration date for remote shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r--apps/settings/templates/settings/admin/sharing.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/settings/templates/settings/admin/sharing.php b/apps/settings/templates/settings/admin/sharing.php
index 9938955ae3d..4bb2ddca7d9 100644
--- a/apps/settings/templates/settings/admin/sharing.php
+++ b/apps/settings/templates/settings/admin/sharing.php
@@ -63,6 +63,29 @@
<label for="shareapiInternalEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
</p>
+ <p id="remoteShareSettings" class="indent <?php if ($_['shareAPIEnabled'] === 'no') {
+ p('hidden');
+} ?>">
+ <input type="checkbox" name="shareapi_default_remote_expire_date" id="shareapiDefaultRemoteExpireDate" class="checkbox"
+ value="1" <?php if ($_['shareDefaultRemoteExpireDateSet'] === 'yes') {
+ print_unescaped('checked="checked"');
+} ?> />
+ <label for="shareapiDefaultRemoteExpireDate"><?php p($l->t('Set default expiration date for shares to other servers'));?></label><br/>
+ </p>
+ <p id="setDefaultRemoteExpireDate" class="double-indent <?php if ($_['shareDefaultRemoteExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') {
+ p('hidden');
+}?>">
+ <?php p($l->t('Expire after ')); ?>
+ <input type="text" name='shareapi_remote_expire_after_n_days' id="shareapiRemoteExpireAfterNDays" placeholder="<?php p('7')?>"
+ value='<?php p($_['shareRemoteExpireAfterNDays']) ?>' />
+ <?php p($l->t('days')); ?>
+ <input type="checkbox" name="shareapi_enforce_remote_expire_date" id="shareapiRemoteEnforceExpireDate" class="checkbox"
+ value="1" <?php if ($_['shareRemoteEnforceExpireDate'] === 'yes') {
+ print_unescaped('checked="checked"');
+} ?> />
+ <label for="shareapiRemoteEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
+ </p>
+
<p class="<?php if ($_['shareAPIEnabled'] === 'no') {
p('hidden');
}?>">