diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-19 21:42:30 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-19 21:42:30 +0200 |
commit | 30f1ec2521f1983f744c4efdaaed5fe97b6e958d (patch) | |
tree | b20cd3848e4e27bc2260fd66f3896b9bfbf6cc54 /settings/templates/admin.php | |
parent | b7981910f7a4bf8815c23714d525633a8c800f18 (diff) | |
parent | b6d2d6329d99c47fa8a01a7a8db7f8f2de6b9f74 (diff) | |
download | nextcloud-server-30f1ec2521f1983f744c4efdaaed5fe97b6e958d.tar.gz nextcloud-server-30f1ec2521f1983f744c4efdaaed5fe97b6e958d.zip |
Merge branch 'master' into test_annotations_working
Conflicts:
lib/private/util.php
Diffstat (limited to 'settings/templates/admin.php')
-rw-r--r-- | settings/templates/admin.php | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 992d9c16a89..3b06d92895d 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -232,15 +232,32 @@ if (!$_['internetconnectionworking']) { <input type="checkbox" name="shareapi_allow_links" id="allowLinks" value="1" <?php if ($_['allowLinks'] === 'yes') print_unescaped('checked="checked"'); ?> /> <label for="allowLinks"><?php p($l->t('Allow links'));?></label><br/> - <em><?php p($l->t('Allow users to share items to the public with links')); ?></em> - </td> - </tr> - <tr> - <td <?php if ($_['shareAPIEnabled'] == 'no') print_unescaped('class="hidden"');?>> + <div <?php ($_['allowLinks'] === 'yes') ? print_unescaped('class="indent"') : print_unescaped('class="hidden indent"');?> id="publicLinkSettings"> + <input type="checkbox" name="shareapi_enforce_links_password" id="enforceLinkPassword" + value="1" <?php if ($_['enforceLinkPassword']) print_unescaped('checked="checked"'); ?> /> + <label for="enforceLinkPassword"><?php p($l->t('Enforce password protection'));?></label><br/> <input type="checkbox" name="shareapi_allow_public_upload" id="allowPublicUpload" value="1" <?php if ($_['allowPublicUpload'] == 'yes') print_unescaped('checked="checked"'); ?> /> <label for="allowPublicUpload"><?php p($l->t('Allow public uploads'));?></label><br/> - <em><?php p($l->t('Allow users to enable others to upload into their publicly shared folders')); ?></em> + + <input type="checkbox" name="shareapi_default_expire_date" id="shareapiDefaultExpireDate" + value="1" <?php if ($_['shareDefaultExpireDateSet'] === 'yes') print_unescaped('checked="checked"'); ?> /> + <label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date'));?></label><br/> + <div id="setDefaultExpireDate" <?php ($_['shareDefaultExpireDateSet'] === 'no') ? print_unescaped('class="hidden indent"') : print_unescaped('class="indent"');?>> + <?php p($l->t( 'Expire after ' )); ?> + <input type="text" name='shareapi_expire_after_n_days' id="shareapiExpireAfterNDays" placeholder="<?php p('7')?>" + value='<?php p($_['shareExpireAfterNDays']) ?>' /> + <?php p($l->t( 'days' )); ?> + <input type="checkbox" name="shareapi_enforce_expire_date" id="shareapiEnforceExpireDate" + value="1" <?php if ($_['shareEnforceExpireDate'] == 'yes') print_unescaped('checked="checked"'); ?> /> + <label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/> + </div> + + </div> + <em><?php p($l->t('Allow users to share items to the public with links')); ?></em> + + + </td> </tr> <tr> @@ -270,22 +287,6 @@ if (!$_['internetconnectionworking']) { </td> </tr> - <tr> - <td <?php if ($_['shareAPIEnabled'] == 'no') print_unescaped('class="hidden"');?>> - <input type="checkbox" name="shareapi_default_expire_date" id="shareapi_default_expire_date" - value="1" <?php if ($_['shareDefaultExpireDateSet'] == 'yes') print_unescaped('checked="checked"'); ?> /> - <label for="shareapi_default_expire_date"><?php p($l->t('Set default expiration date'));?></label><br/> - <?php p($l->t( 'Expire after ' )); ?> - <input type="text" name='shareapi_expire_after_n_days' id="shareapi_expire_after_n_days" placeholder="<?php p('7')?>" - value='<?php p($_['shareExpireAfterNDays']) ?>' /> - <?php p($l->t( 'days' )); ?> - <input type="checkbox" name="shareapi_enforce_expire_date" id="shareapi_enforce_expire_date" - value="1" <?php if ($_['shareEnforceExpireDate'] == 'yes') print_unescaped('checked="checked"'); ?> /> - <label for="shareapi_enforce_expire_date"><?php p($l->t('Enforce expiration date'));?></label><br/> - <em><?php p($l->t('Expire shares by default after N days')); ?></em> - </td> - </tr> - </table> </div> |