summaryrefslogtreecommitdiffstats
path: root/apps/settings/templates
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/templates')
-rw-r--r--apps/settings/templates/settings/admin/delegation.php29
-rw-r--r--apps/settings/templates/settings/admin/sharing.php281
-rw-r--r--apps/settings/templates/settings/personal/personal.info.php209
3 files changed, 258 insertions, 261 deletions
diff --git a/apps/settings/templates/settings/admin/delegation.php b/apps/settings/templates/settings/admin/delegation.php
new file mode 100644
index 00000000000..2474aa93cd4
--- /dev/null
+++ b/apps/settings/templates/settings/admin/delegation.php
@@ -0,0 +1,29 @@
+<?php
+
+/**
+ * @copyright Copyright (c) 2021 Nextcloud GmbH
+ *
+ * @author Carl Schwan <carl@carlschwan.eu>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
+
+script('settings', 'vue-settings-admin-delegation');
+?>
+
+<div id="admin-right-sub-granting">
+</div>
diff --git a/apps/settings/templates/settings/admin/sharing.php b/apps/settings/templates/settings/admin/sharing.php
index 75ad6f76d23..62be48dc99d 100644
--- a/apps/settings/templates/settings/admin/sharing.php
+++ b/apps/settings/templates/settings/admin/sharing.php
@@ -3,6 +3,7 @@
* @copyright Copyright (c) 2016 Arthur Schiwon <blizzz@arthur-schiwon.de>
*
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
+ * @author Thomas Citharel <nextcloud@tcit.fr>
*
* @license GNU AGPL version 3 or any later version
*
@@ -28,234 +29,240 @@
<div class="section" id="shareAPI">
<h2><?php p($l->t('Sharing'));?></h2>
- <a target="_blank" rel="noreferrer noopener" class="icon-info"
- title="<?php p($l->t('Open documentation'));?>"
- href="<?php p(link_to_docs('admin-sharing')); ?>"></a>
- <p class="settings-hint"><?php p($l->t('As admin you can fine-tune the sharing behavior. Please see the documentation for more information.'));?></p>
- <p id="enable">
- <input type="checkbox" name="shareapi_enabled" id="shareAPIEnabled" class="checkbox"
- value="1" <?php if ($_['shareAPIEnabled'] === 'yes') {
+ <?php if ($_['sharingAppEnabled'] === false) { ?>
+ <p class="warning"><?php p($l->t('You need to enable the File sharing App.')); ?></p>
+ <?php } else { ?>
+ <div>
+ <a target="_blank" rel="noreferrer noopener" class="icon-info"
+ title="<?php p($l->t('Open documentation'));?>"
+ href="<?php p(link_to_docs('admin-sharing')); ?>"></a>
+ <p class="settings-hint"><?php p($l->t('As admin you can fine-tune the sharing behavior. Please see the documentation for more information.'));?></p>
+ <p id="enable">
+ <input type="checkbox" name="shareapi_enabled" id="shareAPIEnabled" class="checkbox"
+ value="1" <?php if ($_['shareAPIEnabled'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareAPIEnabled"><?php p($l->t('Allow apps to use the Share API'));?></label><br/>
- </p>
+ <label for="shareAPIEnabled"><?php p($l->t('Allow apps to use the Share API'));?></label><br/>
+ </p>
- <p id="internalShareSettings" class="indent <?php if ($_['shareAPIEnabled'] === 'no') {
+ <p id="internalShareSettings" class="indent <?php if ($_['shareAPIEnabled'] === 'no') {
p('hidden');
} ?>">
- <input type="checkbox" name="shareapi_default_internal_expire_date" id="shareapiDefaultInternalExpireDate" class="checkbox"
- value="1" <?php if ($_['shareDefaultInternalExpireDateSet'] === 'yes') {
+ <input type="checkbox" name="shareapi_default_internal_expire_date" id="shareapiDefaultInternalExpireDate" class="checkbox"
+ value="1" <?php if ($_['shareDefaultInternalExpireDateSet'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareapiDefaultInternalExpireDate"><?php p($l->t('Set default expiration date for shares'));?></label><br/>
- </p>
- <p id="setDefaultInternalExpireDate" class="double-indent <?php if ($_['shareDefaultInternalExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') {
+ <label for="shareapiDefaultInternalExpireDate"><?php p($l->t('Set default expiration date for shares'));?></label><br/>
+ </p>
+ <p id="setDefaultInternalExpireDate" class="double-indent <?php if ($_['shareDefaultInternalExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') {
p('hidden');
}?>">
- <?php p($l->t('Expire after') . ' '); ?>
- <input type="text" name='shareapi_internal_expire_after_n_days' id="shareapiInternalExpireAfterNDays" placeholder="<?php p('7')?>"
- value='<?php p($_['shareInternalExpireAfterNDays']) ?>' />
- <?php p($l->t('day(s)')); ?>
- <input type="checkbox" name="shareapi_enforce_internal_expire_date" id="shareapiInternalEnforceExpireDate" class="checkbox"
- value="1" <?php if ($_['shareInternalEnforceExpireDate'] === 'yes') {
+ <?php p($l->t('Expire after') . ' '); ?>
+ <input type="text" name='shareapi_internal_expire_after_n_days' id="shareapiInternalExpireAfterNDays" placeholder="<?php p('7')?>"
+ value='<?php p($_['shareInternalExpireAfterNDays']) ?>' />
+ <?php p($l->t('day(s)')); ?>
+ <input type="checkbox" name="shareapi_enforce_internal_expire_date" id="shareapiInternalEnforceExpireDate" class="checkbox"
+ value="1" <?php if ($_['shareInternalEnforceExpireDate'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareapiInternalEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
- </p>
+ <label for="shareapiInternalEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
+ </p>
- <p id="remoteShareSettings" class="indent <?php if ($_['shareAPIEnabled'] === 'no') {
+ <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') {
+ <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') {
+ <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('day(s)')); ?>
- <input type="checkbox" name="shareapi_enforce_remote_expire_date" id="shareapiRemoteEnforceExpireDate" class="checkbox"
- value="1" <?php if ($_['shareRemoteEnforceExpireDate'] === 'yes') {
+ <?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('day(s)')); ?>
+ <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>
+ <label for="shareapiRemoteEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
+ </p>
- <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
+ <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
p('hidden');
}?>">
- <input type="checkbox" name="shareapi_allow_links" id="allowLinks" class="checkbox"
- value="1" <?php if ($_['allowLinks'] === 'yes') {
+ <input type="checkbox" name="shareapi_allow_links" id="allowLinks" class="checkbox"
+ value="1" <?php if ($_['allowLinks'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="allowLinks"><?php p($l->t('Allow users to share via link and emails'));?></label><br/>
- </p>
+ <label for="allowLinks"><?php p($l->t('Allow users to share via link and emails'));?></label><br/>
+ </p>
- <p id="publicLinkSettings" class="indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareAPIEnabled'] === 'no') {
+ <p id="publicLinkSettings" class="indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareAPIEnabled'] === 'no') {
p('hidden');
} ?>">
- <input type="checkbox" name="shareapi_allow_public_upload" id="allowPublicUpload" class="checkbox"
- value="1" <?php if ($_['allowPublicUpload'] == 'yes') {
+ <input type="checkbox" name="shareapi_allow_public_upload" id="allowPublicUpload" class="checkbox"
+ value="1" <?php if ($_['allowPublicUpload'] == 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="allowPublicUpload"><?php p($l->t('Allow public uploads'));?></label><br/>
- <input type="checkbox" name="shareapi_enable_link_password_by_default" id="enableLinkPasswordByDefault" class="checkbox"
- value="1" <?php if ($_['enableLinkPasswordByDefault'] === 'yes') {
+ <label for="allowPublicUpload"><?php p($l->t('Allow public uploads'));?></label><br/>
+ <input type="checkbox" name="shareapi_enable_link_password_by_default" id="enableLinkPasswordByDefault" class="checkbox"
+ value="1" <?php if ($_['enableLinkPasswordByDefault'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password'));?></label><br/>
- <input type="checkbox" name="shareapi_enforce_links_password" id="enforceLinkPassword" class="checkbox"
- value="1" <?php if ($_['enforceLinkPassword']) {
+ <label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password'));?></label><br/>
+ <input type="checkbox" name="shareapi_enforce_links_password" id="enforceLinkPassword" class="checkbox"
+ value="1" <?php if ($_['enforceLinkPassword']) {
print_unescaped('checked="checked"');
} ?> />
- <label for="enforceLinkPassword"><?php p($l->t('Enforce password protection'));?></label><br/>
+ <label for="enforceLinkPassword"><?php p($l->t('Enforce password protection'));?></label><br/>
- <input type="checkbox" name="shareapi_default_expire_date" id="shareapiDefaultExpireDate" class="checkbox"
- value="1" <?php if ($_['shareDefaultExpireDateSet'] === 'yes') {
+ <input type="checkbox" name="shareapi_default_expire_date" id="shareapiDefaultExpireDate" class="checkbox"
+ value="1" <?php if ($_['shareDefaultExpireDateSet'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date'));?></label><br/>
+ <label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date'));?></label><br/>
- </p>
- <p id="setDefaultExpireDate" class="double-indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareDefaultExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') {
+ </p>
+ <p id="setDefaultExpireDate" class="double-indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareDefaultExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') {
p('hidden');
}?>">
- <?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('day(s)')); ?>
- <input type="checkbox" name="shareapi_enforce_expire_date" id="shareapiEnforceExpireDate" class="checkbox"
- value="1" <?php if ($_['shareEnforceExpireDate'] === 'yes') {
+ <?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('day(s)')); ?>
+ <input type="checkbox" name="shareapi_enforce_expire_date" id="shareapiEnforceExpireDate" class="checkbox"
+ value="1" <?php if ($_['shareEnforceExpireDate'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
- </p>
- <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
+ <label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
+ </p>
+ <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
p('hidden');
}?>">
- <p class="indent">
- <?php p($l->t('Exclude groups from creating link shares:'));?>
- </p>
- <p id="selectLinksExcludedGroups" class="indent <?php if ($_['allowLinks'] === 'no') {
+ <p class="indent">
+ <?php p($l->t('Exclude groups from creating link shares:'));?>
+ </p>
+ <p id="selectLinksExcludedGroups" class="indent <?php if ($_['allowLinks'] === 'no') {
p('hidden');
} ?>">
- <input name="shareapi_allow_links_exclude_groups" type="hidden" id="linksExcludedGroups" value="<?php p($_['allowLinksExcludeGroups']) ?>" style="width: 400px" class="noJSAutoUpdate"/>
- </p>
- <input type="checkbox" name="shareapi_allow_resharing" id="allowResharing" class="checkbox"
- value="1" <?php if ($_['allowResharing'] === 'yes') {
+ <input name="shareapi_allow_links_exclude_groups" type="hidden" id="linksExcludedGroups" value="<?php p($_['allowLinksExcludeGroups']) ?>" style="width: 400px" class="noJSAutoUpdate"/>
+ </p>
+ <input type="checkbox" name="shareapi_allow_resharing" id="allowResharing" class="checkbox"
+ value="1" <?php if ($_['allowResharing'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/>
- </p>
- <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
+ <label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/>
+ </p>
+ <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
p('hidden');
}?>">
- <input type="checkbox" name="shareapi_allow_group_sharing" id="allowGroupSharing" class="checkbox"
- value="1" <?php if ($_['allowGroupSharing'] === 'yes') {
+ <input type="checkbox" name="shareapi_allow_group_sharing" id="allowGroupSharing" class="checkbox"
+ 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="<?php if ($_['shareAPIEnabled'] === 'no') {
+ <label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups'));?></label><br />
+ </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']) {
+ <input type="checkbox" name="shareapi_only_share_with_group_members" id="onlyShareWithGroupMembers" class="checkbox"
+ value="1" <?php if ($_['onlyShareWithGroupMembers']) {
print_unescaped('checked="checked"');
} ?> />
- <label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups'));?></label><br/>
- </p>
- <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
+ <label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups'));?></label><br/>
+ </p>
+ <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
p('hidden');
}?>">
- <input type="checkbox" name="shareapi_exclude_groups" id="shareapiExcludeGroups" class="checkbox"
- value="1" <?php if ($_['shareExcludeGroups']) {
+ <input type="checkbox" name="shareapi_exclude_groups" id="shareapiExcludeGroups" class="checkbox"
+ value="1" <?php if ($_['shareExcludeGroups']) {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing'));?></label><br/>
- </p>
- <p id="selectExcludedGroups" class="indent <?php if (!$_['shareExcludeGroups'] || $_['shareAPIEnabled'] === 'no') {
+ <label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing'));?></label><br/>
+ </p>
+ <p id="selectExcludedGroups" class="indent <?php if (!$_['shareExcludeGroups'] || $_['shareAPIEnabled'] === 'no') {
p('hidden');
} ?>">
- <input name="shareapi_exclude_groups_list" type="hidden" id="excludedGroups" value="<?php p($_['shareExcludedGroupsList']) ?>" style="width: 400px" class="noJSAutoUpdate"/>
- <br />
- <em><?php p($l->t('These groups will still be able to receive shares, but not to initiate them.')); ?></em>
- </p>
+ <input name="shareapi_exclude_groups_list" type="hidden" id="excludedGroups" value="<?php p($_['shareExcludedGroupsList']) ?>" style="width: 400px" class="noJSAutoUpdate"/>
+ <br />
+ <em><?php p($l->t('These groups will still be able to receive shares, but not to initiate them.')); ?></em>
+ </p>
- <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
+ <p class="<?php if ($_['shareAPIEnabled'] === 'no') {
p('hidden');
}?>">
- <input type="checkbox" name="shareapi_allow_share_dialog_user_enumeration" value="1" id="shareapi_allow_share_dialog_user_enumeration" class="checkbox"
- <?php if ($_['allowShareDialogUserEnumeration'] === 'yes') {
+ <input type="checkbox" name="shareapi_allow_share_dialog_user_enumeration" value="1" id="shareapi_allow_share_dialog_user_enumeration" class="checkbox"
+ <?php if ($_['allowShareDialogUserEnumeration'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog'));?></label><br />
- </p>
+ <label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog'));?></label><br />
+ </p>
- <p id="shareapi_restrict_user_enumeration_to_group_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
+ <p id="shareapi_restrict_user_enumeration_to_group_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
p('hidden');
}?>">
- <input type="checkbox" name="shareapi_restrict_user_enumeration_to_group" value="1" id="shareapi_restrict_user_enumeration_to_group" class="checkbox"
- <?php if ($_['restrictUserEnumerationToGroup'] === 'yes') {
+ <input type="checkbox" name="shareapi_restrict_user_enumeration_to_group" value="1" id="shareapi_restrict_user_enumeration_to_group" class="checkbox"
+ <?php if ($_['restrictUserEnumerationToGroup'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareapi_restrict_user_enumeration_to_group"><?php p($l->t('Allow username autocompletion to users within the same groups'));?></label><br />
- </p>
+ <label for="shareapi_restrict_user_enumeration_to_group"><?php p($l->t('Allow username autocompletion to users within the same groups'));?></label><br />
+ </p>
- <p id="shareapi_restrict_user_enumeration_to_phone_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
+ <p id="shareapi_restrict_user_enumeration_to_phone_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
p('hidden');
}?>">
- <input type="checkbox" name="shareapi_restrict_user_enumeration_to_phone" value="1" id="shareapi_restrict_user_enumeration_to_phone" class="checkbox"
- <?php if ($_['restrictUserEnumerationToPhone'] === 'yes') {
+ <input type="checkbox" name="shareapi_restrict_user_enumeration_to_phone" value="1" id="shareapi_restrict_user_enumeration_to_phone" class="checkbox"
+ <?php if ($_['restrictUserEnumerationToPhone'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phone number integration'));?></label><br />
- </p>
- <p id="shareapi_restrict_user_enumeration_combinewarning_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
+ <label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phone number integration'));?></label><br />
+ </p>
+ <p id="shareapi_restrict_user_enumeration_combinewarning_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
p('hidden');
}?>">
- <em><?php p($l->t('If autocompletion "same group" and "phone number integration" are enabled a match in either is enough to show the user.'));?></em><br />
- </p>
- <p id="shareapi_restrict_user_enumeration_full_match_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no') {
+ <em><?php p($l->t('If autocompletion "same group" and "phone number integration" are enabled a match in either is enough to show the user.'));?></em><br />
+ </p>
+ <p id="shareapi_restrict_user_enumeration_full_match_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no') {
p('hidden');
}?>">
- <input type="checkbox" name="shareapi_restrict_user_enumeration_full_match" value="1" id="shareapi_restrict_user_enumeration_full_match" class="checkbox"
- <?php if ($_['restrictUserEnumerationFullMatch'] === 'yes') {
+ <input type="checkbox" name="shareapi_restrict_user_enumeration_full_match" value="1" id="shareapi_restrict_user_enumeration_full_match" class="checkbox"
+ <?php if ($_['restrictUserEnumerationFullMatch'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
- <label for="shareapi_restrict_user_enumeration_full_match"><?php p($l->t('Allow username autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)'));?></label><br />
- </p>
+ <label for="shareapi_restrict_user_enumeration_full_match"><?php p($l->t('Allow username autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)'));?></label><br />
+ </p>
- <p>
- <input type="checkbox" id="publicShareDisclaimer" class="checkbox noJSAutoUpdate"
- <?php if ($_['publicShareDisclaimerText'] !== null) {
+ <p>
+ <input type="checkbox" id="publicShareDisclaimer" class="checkbox noJSAutoUpdate"
+ <?php if ($_['publicShareDisclaimerText'] !== null) {
print_unescaped('checked="checked"');
} ?> />
- <label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page (only shown when the file list is hidden)'));?></label>
- <span id="publicShareDisclaimerStatus" class="msg" style="display:none"></span>
- <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) {
+ <label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page (only shown when the file list is hidden)'));?></label>
+ <span id="publicShareDisclaimerStatus" class="msg" style="display:none"></span>
+ <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>
+ </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') {
+ <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) {
+ <?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>
+ <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']);?></label>
+ <?php endforeach ?>
+ </p>
+ </div>
+ <?php } ?>
</div>
diff --git a/apps/settings/templates/settings/personal/personal.info.php b/apps/settings/templates/settings/personal/personal.info.php
index c1a5735aa8f..d258f616229 100644
--- a/apps/settings/templates/settings/personal/personal.info.php
+++ b/apps/settings/templates/settings/personal/personal.info.php
@@ -1,4 +1,5 @@
<?php
+
/**
* @copyright Copyright (c) 2017 Arthur Schiwon <blizzz@arthur-schiwon.de>
*
@@ -52,13 +53,13 @@ script('settings', [
<div id="displayavatar">
<div class="avatardiv"></div>
<div class="warning hidden"></div>
- <?php if ($_['avatarChangeSupported']): ?>
+ <?php if ($_['avatarChangeSupported']) : ?>
<label for="uploadavatar" class="inlineblock button icon-upload svg" id="uploadavatarbutton" title="<?php p($l->t('Upload new')); ?>" tabindex="0"></label>
<button class="inlineblock button icon-folder svg" id="selectavatar" title="<?php p($l->t('Select from Files')); ?>"></button>
<button class="hidden button icon-delete svg" id="removeavatar" title="<?php p($l->t('Remove image')); ?>"></button>
<input type="file" name="files[]" id="uploadavatar" class="hiddenuploadfield" accept="image/*">
<p><em><?php p($l->t('png or jpg, max. 20 MB')); ?></em></p>
- <?php else: ?>
+ <?php else : ?>
<?php p($l->t('Picture provided by original account')); ?>
<?php endif; ?>
</div>
@@ -70,8 +71,9 @@ script('settings', [
</div>
</div>
<span class="icon-checkmark hidden"></span>
- <span class="icon-error hidden" ></span>
+ <span class="icon-error hidden"></span>
<input type="hidden" id="avatarscope" value="<?php p($_['avatarScope']) ?>">
+ <div id="vue-profile-visibility-avatar"></div>
</form>
</div>
<div class="personal-settings-setting-box personal-settings-group-box section">
@@ -85,51 +87,30 @@ script('settings', [
<div id="quota" class="personal-info icon-quota">
<div class="quotatext-bg">
<p class="quotatext">
- <?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
- <?php print_unescaped($l->t('You are using <strong>%s</strong>',
- [$_['usage']]));?>
- <?php else: ?>
- <?php print_unescaped($l->t('You are using <strong>%1$s</strong> of <strong>%2$s</strong> (<strong>%3$s %%</strong>)',
- [$_['usage'], $_['total_space'], $_['usage_relative']]));?>
+ <?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) : ?>
+ <?php print_unescaped($l->t(
+ 'You are using <strong>%s</strong>',
+ [$_['usage']]
+ )); ?>
+ <?php else : ?>
+ <?php print_unescaped($l->t(
+ 'You are using <strong>%1$s</strong> of <strong>%2$s</strong> (<strong>%3$s %%</strong>)',
+ [$_['usage'], $_['total_space'], $_['usage_relative']]
+ )); ?>
<?php endif ?>
</p>
</div>
- <progress value="<?php p($_['usage_relative']); ?>" max="100"<?php if ($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
+ <progress value="<?php p($_['usage_relative']); ?>" max="100" <?php if ($_['usage_relative'] > 80) : ?> class="warn" <?php endif; ?>></progress>
</div>
</div>
</div>
<div class="personal-settings-container">
<div class="personal-settings-setting-box">
- <form id="displaynameform" class="section">
- <h3>
- <label for="displayname"><?php p($l->t('Full name')); ?></label>
- <a href="#" class="federation-menu" aria-label="<?php p($l->t('Change privacy level of full name')); ?>">
- <span class="icon-federation-menu icon-password">
- <span class="icon-triangle-s"></span>
- </span>
- </a>
- </h3>
- <input type="text" id="displayname" name="displayname"
- <?php if (!$_['displayNameChangeSupported']) {
- print_unescaped('class="hidden"');
- } ?>
- value="<?php p($_['displayName']) ?>"
- autocomplete="on" autocapitalize="none" autocorrect="off" />
- <?php if (!$_['displayNameChangeSupported']) { ?>
- <span><?php if (isset($_['displayName']) && !empty($_['displayName'])) {
- p($_['displayName']);
- } else {
- p($l->t('No display name set'));
- } ?></span>
- <?php } ?>
- <span class="icon-checkmark hidden"></span>
- <span class="icon-error hidden" ></span>
- <input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>">
- </form>
+ <div id="vue-displayname-section"></div>
</div>
<div class="personal-settings-setting-box">
- <div id="vue-emailsection" class="section"></div>
+ <div id="vue-email-section"></div>
</div>
<div class="personal-settings-setting-box">
<form id="phoneform" class="section">
@@ -141,13 +122,11 @@ script('settings', [
</span>
</a>
</h3>
- <input type="tel" id="phone" name="phone"
- value="<?php p($_['phone']) ?>"
- placeholder="<?php p($l->t('Your phone number')); ?>"
- autocomplete="on" autocapitalize="none" autocorrect="off" />
+ <input type="tel" id="phone" name="phone" value="<?php p($_['phone']) ?>" placeholder="<?php p($l->t('Your phone number')); ?>" autocomplete="on" autocapitalize="none" autocorrect="off" />
<span class="icon-checkmark hidden"></span>
- <span class="icon-error hidden" ></span>
+ <span class="icon-error hidden"></span>
<input type="hidden" id="phonescope" value="<?php p($_['phoneScope']) ?>">
+ <div id="vue-profile-visibility-phone"></div>
</form>
</div>
<div class="personal-settings-setting-box">
@@ -160,13 +139,11 @@ script('settings', [
</span>
</a>
</h3>
- <input type="text" id="address" name="address"
- placeholder="<?php p($l->t('Your postal address')); ?>"
- value="<?php p($_['address']) ?>"
- autocomplete="on" autocapitalize="none" autocorrect="off" />
+ <input type="text" id="address" name="address" placeholder="<?php p($l->t('Your postal address')); ?>" value="<?php p($_['address']) ?>" autocomplete="on" autocapitalize="none" autocorrect="off" />
<span class="icon-checkmark hidden"></span>
- <span class="icon-error hidden" ></span>
+ <span class="icon-error hidden"></span>
<input type="hidden" id="addressscope" value="<?php p($_['addressScope']) ?>">
+ <div id="vue-profile-visibility-address"></div>
</form>
</div>
<div class="personal-settings-setting-box">
@@ -180,10 +157,10 @@ script('settings', [
</a>
</h3>
<?php if ($_['lookupServerUploadEnabled']) { ?>
- <div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') {
- p('hidden');
- } ?>">
- <img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
+ <div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') {
+ p('hidden');
+ } ?>">
+ <img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
<?php
switch ($_['websiteVerification']) {
case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
@@ -195,27 +172,23 @@ script('settings', [
default:
p(image_path('core', 'actions/verify.svg'));
}
- ?>"
- <?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) {
+ ?>" <?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) {
print_unescaped(' class="verify-action"');
- } ?>
- >
- <div class="verification-dialog popovermenu bubble menu">
- <div class="verification-dialog-content">
- <p class="explainVerification"></p>
- <p class="verificationCode"></p>
- <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
+ } ?>>
+ <div class="verification-dialog popovermenu bubble menu">
+ <div class="verification-dialog-content">
+ <p class="explainVerification"></p>
+ <p class="verificationCode"></p>
+ <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
+ </div>
</div>
</div>
- </div>
<?php } ?>
- <input type="url" name="website" id="website" value="<?php p($_['website']); ?>"
- placeholder="<?php p($l->t('Link https://…')); ?>"
- autocomplete="on" autocapitalize="none" autocorrect="off"
- />
+ <input type="url" name="website" id="website" value="<?php p($_['website']); ?>" placeholder="<?php p($l->t('Link https://…')); ?>" autocomplete="on" autocapitalize="none" autocorrect="off" />
<span class="icon-checkmark hidden"></span>
- <span class="icon-error hidden" ></span>
+ <span class="icon-error hidden"></span>
<input type="hidden" id="websitescope" value="<?php p($_['websiteScope']) ?>">
+ <div id="vue-profile-visibility-website"></div>
</form>
</div>
<div class="personal-settings-setting-box">
@@ -229,10 +202,10 @@ script('settings', [
</a>
</h3>
<?php if ($_['lookupServerUploadEnabled']) { ?>
- <div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') {
+ <div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') {
p('hidden');
} ?>">
- <img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
+ <img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
<?php
switch ($_['twitterVerification']) {
case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
@@ -244,86 +217,74 @@ script('settings', [
default:
p(image_path('core', 'actions/verify.svg'));
}
- ?>"
- <?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) {
+ ?>" <?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) {
print_unescaped(' class="verify-action"');
- } ?>
- >
- <div class="verification-dialog popovermenu bubble menu">
- <div class="verification-dialog-content">
- <p class="explainVerification"></p>
- <p class="verificationCode"></p>
- <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
+ } ?>>
+ <div class="verification-dialog popovermenu bubble menu">
+ <div class="verification-dialog-content">
+ <p class="explainVerification"></p>
+ <p class="verificationCode"></p>
+ <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
+ </div>
</div>
</div>
- </div>
<?php } ?>
- <input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>"
- placeholder="<?php p($l->t('Twitter handle @…')); ?>"
- autocomplete="on" autocapitalize="none" autocorrect="off"
- />
+ <input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>" placeholder="<?php p($l->t('Twitter handle @…')); ?>" autocomplete="on" autocapitalize="none" autocorrect="off" />
<span class="icon-checkmark hidden"></span>
- <span class="icon-error hidden" ></span>
+ <span class="icon-error hidden"></span>
<input type="hidden" id="twitterscope" value="<?php p($_['twitterScope']) ?>">
+ <div id="vue-profile-visibility-twitter"></div>
</form>
</div>
+ <div class="personal-settings-setting-box">
+ <div id="vue-organisation-section"></div>
+ </div>
+ <div class="personal-settings-setting-box">
+ <div id="vue-role-section"></div>
+ </div>
+ <div class="personal-settings-setting-box">
+ <div id="vue-headline-section"></div>
+ </div>
+ <div class="personal-settings-setting-box">
+ <div id="vue-biography-section"></div>
+ </div>
</div>
<div class="profile-settings-container">
+ <div class="personal-settings-setting-box">
+ <div id="vue-profile-section"></div>
+ </div>
+ <div class="personal-settings-setting-box">
+ <div id="vue-profile-visibility-section"></div>
+ </div>
<div class="personal-settings-setting-box personal-settings-language-box">
- <?php if (isset($_['activelanguage'])) { ?>
- <form id="language" class="section">
- <h3>
- <label for="languageinput"><?php p($l->t('Language'));?></label>
- </h3>
- <select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
- <option value="<?php p($_['activelanguage']['code']);?>">
- <?php p($_['activelanguage']['name']);?>
- </option>
- <?php foreach ($_['commonlanguages'] as $language):?>
- <option value="<?php p($language['code']);?>">
- <?php p($language['name']);?>
- </option>
- <?php endforeach;?>
- <optgroup label="––––––––––"></optgroup>
- <?php foreach ($_['languages'] as $language):?>
- <option value="<?php p($language['code']);?>">
- <?php p($language['name']);?>
- </option>
- <?php endforeach;?>
- </select>
- <a href="https://www.transifex.com/nextcloud/nextcloud/"
- target="_blank" rel="noreferrer noopener">
- <em><?php p($l->t('Help translate'));?></em>
- </a>
- </form>
- <?php } ?>
+ <div id="vue-language-section"></div>
</div>
<div class="personal-settings-setting-box personal-settings-locale-box">
<?php if (isset($_['activelocale'])) { ?>
<form id="locale" class="section">
<h3>
- <label for="localeinput"><?php p($l->t('Locale'));?></label>
+ <label for="localeinput"><?php p($l->t('Locale')); ?></label>
</h3>
- <select id="localeinput" name="lang" data-placeholder="<?php p($l->t('Locale'));?>">
- <option value="<?php p($_['activelocale']['code']);?>">
- <?php p($l->t($_['activelocale']['name']));?>
+ <select id="localeinput" name="lang" data-placeholder="<?php p($l->t('Locale')); ?>">
+ <option value="<?php p($_['activelocale']['code']); ?>">
+ <?php p($l->t($_['activelocale']['name'])); ?>
</option>
<optgroup label="––––––––––"></optgroup>
- <?php foreach ($_['localesForLanguage'] as $locale):?>
- <option value="<?php p($locale['code']);?>">
- <?php p($l->t($locale['name']));?>
+ <?php foreach ($_['localesForLanguage'] as $locale) : ?>
+ <option value="<?php p($locale['code']); ?>">
+ <?php p($l->t($locale['name'])); ?>
</option>
- <?php endforeach;?>
+ <?php endforeach; ?>
<optgroup label="––––––––––"></optgroup>
- <option value="<?php p($_['activelocale']['code']);?>">
- <?php p($l->t($_['activelocale']['name']));?>
+ <option value="<?php p($_['activelocale']['code']); ?>">
+ <?php p($l->t($_['activelocale']['name'])); ?>
</option>
- <?php foreach ($_['locales'] as $locale):?>
- <option value="<?php p($locale['code']);?>">
- <?php p($l->t($locale['name']));?>
+ <?php foreach ($_['locales'] as $locale) : ?>
+ <option value="<?php p($locale['code']); ?>">
+ <?php p($l->t($locale['name'])); ?>
</option>
- <?php endforeach;?>
+ <?php endforeach; ?>
</select>
<div id="localeexample" class="personal-info icon-timezone">
<p>