summaryrefslogtreecommitdiffstats
path: root/settings/templates/admin.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-09 14:58:33 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-05-13 11:28:25 +0200
commitec045b251c5e42ce3762f3aefc0936581fd21030 (patch)
tree9705041ccab1c3ac01c122ca05d28d9efb79cdc2 /settings/templates/admin.php
parent9919ec48df83b2f9d5b5b71318ead553d0e7567a (diff)
downloadnextcloud-server-ec045b251c5e42ce3762f3aefc0936581fd21030.tar.gz
nextcloud-server-ec045b251c5e42ce3762f3aefc0936581fd21030.zip
hide input field if default expire date isn't activated
Diffstat (limited to 'settings/templates/admin.php')
-rw-r--r--settings/templates/admin.php44
1 files changed, 22 insertions, 22 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index d8a800ca202..4d453b01270 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -217,15 +217,31 @@ 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_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>
@@ -255,22 +271,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>