diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-12-01 14:15:05 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-27 12:29:25 +0100 |
commit | 7741429229041a4f1b28230fd039b2dc9ec2dada (patch) | |
tree | 0fe61b3715a5df3588ede2c77c0d65ec333c3d4c /settings | |
parent | 1615312bf1044dcbd98c7e4739467314ada618cf (diff) | |
download | nextcloud-server-7741429229041a4f1b28230fd039b2dc9ec2dada.tar.gz nextcloud-server-7741429229041a4f1b28230fd039b2dc9ec2dada.zip |
improved layout of the admin settings
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/templates/settings/admin/sharing.php | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/settings/templates/settings/admin/sharing.php b/settings/templates/settings/admin/sharing.php index 1f8e72910c4..5913524be40 100644 --- a/settings/templates/settings/admin/sharing.php +++ b/settings/templates/settings/admin/sharing.php @@ -78,18 +78,6 @@ value="1" <?php if ($_['allowGroupSharing'] === 'yes') print_unescaped('checked="checked"'); ?> /> <label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups'));?></label><br /> </p> - <p class="nocheckbox <?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>"> - <input type="hidden" name="shareapi_default_permissions" id="shareApiDefaultPermissions" class="checkbox" - value="<?php p($_['shareApiDefaultPermissions']) ?>" /> - <?php p($l->t('Default user and group share permissions'));?> - </p> - <p id="shareApiDefaultPermissionsSection" class="indent <?php if ($_['shareAPIEnabled'] === 'no') p('hidden'); ?>"> - <?php foreach ($_['shareApiDefaultPermissionsCheckboxes'] as $perm): ?> - <input type="checkbox" name="shareapi_default_permission_<?php p($perm['id']) ?>" id="shareapi_default_permission_<?php p($perm['id']) ?>" - class="noautosave checkbox" value="<?php p($perm['value']) ?>" <?php if (($_['shareApiDefaultPermissions'] & $perm['value']) !== 0) print_unescaped('checked="checked"'); ?> /> - <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']);?></label> - <?php endforeach ?> - </p> <p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>"> <input type="checkbox" name="shareapi_only_share_with_group_members" id="onlyShareWithGroupMembers" class="checkbox" value="1" <?php if ($_['onlyShareWithGroupMembers']) print_unescaped('checked="checked"'); ?> /> @@ -118,4 +106,15 @@ <br/> <textarea placeholder="<?php p($l->t('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> + + <h3><?php p($l->t('Default share permissions'));?></h3> + <input type="hidden" name="shareapi_default_permissions" id="shareApiDefaultPermissions" class="checkbox" + value="<?php p($_['shareApiDefaultPermissions']) ?>" /> + <p id="shareApiDefaultPermissionsSection" class="indent <?php if ($_['shareAPIEnabled'] === 'no') p('hidden'); ?>"> + <?php foreach ($_['shareApiDefaultPermissionsCheckboxes'] as $perm): ?> + <input type="checkbox" name="shareapi_default_permission_<?php p($perm['id']) ?>" id="shareapi_default_permission_<?php p($perm['id']) ?>" + class="noautosave checkbox" value="<?php p($perm['value']) ?>" <?php if (($_['shareApiDefaultPermissions'] & $perm['value']) !== 0) print_unescaped('checked="checked"'); ?> /> + <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']);?></label> + <?php endforeach ?> + </p> </div> |