From c01f196f723dcb3dea6947c821a70d4d80563bbd Mon Sep 17 00:00:00 2001 From: Volkan Gezer <volkangezer@gmail.com> Date: Thu, 29 May 2014 21:09:56 +0200 Subject: make reshare settings foldable --- settings/templates/admin.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'settings/templates/admin.php') diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 9b632391f88..a410447551e 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -248,16 +248,14 @@ if (!$_['internetconnectionworking']) { value="1" <?php if ($_['allowResharing'] === 'yes') print_unescaped('checked="checked"'); ?> /> <label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/> <em><?php p($l->t('Allow users to share items shared with them again')); ?></em> - </td> - </tr> - <tr> - <td <?php if ($_['shareAPIEnabled'] === 'no') print_unescaped('class="hidden"');?>> - <input type="radio" name="shareapi_share_policy" id="sharePolicyGlobal" - value="global" <?php if ($_['sharePolicy'] === 'global') print_unescaped('checked="checked"'); ?> /> - <label for="sharePolicyGlobal"><?php p($l->t('Allow users to share with anyone')); ?></label><br/> - <input type="radio" name="shareapi_share_policy" id="sharePolicyGroupsOnly" - value="groups_only" <?php if ($_['sharePolicy'] === 'groups_only') print_unescaped('checked="checked"'); ?> /> - <label for="sharePolicyGroupsOnly"><?php p($l->t('Allow users to only share with users in their groups'));?></label><br/> + <div id="resharingSettings" <?php ($_['allowResharing'] === 'yes') ? print_unescaped('class="indent"') : print_unescaped('class="hidden indent"');?>> + <input type="radio" name="shareapi_share_policy" id="sharePolicyGlobal" + value="global" <?php if ($_['sharePolicy'] === 'global') print_unescaped('checked="checked"'); ?> /> + <label for="sharePolicyGlobal"><?php p($l->t('Allow users to share with anyone')); ?></label><br/> + <input type="radio" name="shareapi_share_policy" id="sharePolicyGroupsOnly" + value="groups_only" <?php if ($_['sharePolicy'] === 'groups_only') print_unescaped('checked="checked"'); ?> /> + <label for="sharePolicyGroupsOnly"><?php p($l->t('Allow users to only share with users in their groups'));?></label><br/> + </div> </td> </tr> <tr> -- cgit v1.2.3