summaryrefslogtreecommitdiffstats
path: root/apps/settings/templates
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2021-06-29 18:46:37 +0000
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-07-15 10:16:06 +0200
commit44763576b1180c84b645fcd7017eceaeeeedb094 (patch)
tree7db924e79a46d49ddbc2f2fbb9e672238a6f1ea7 /apps/settings/templates
parentde6e55075bc940ad4b576ba1874ad58960dba11c (diff)
downloadnextcloud-server-44763576b1180c84b645fcd7017eceaeeeedb094.tar.gz
nextcloud-server-44763576b1180c84b645fcd7017eceaeeeedb094.zip
Make emails Vuetiful
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r--apps/settings/templates/settings/personal/personal.info.php52
1 files changed, 4 insertions, 48 deletions
diff --git a/apps/settings/templates/settings/personal/personal.info.php b/apps/settings/templates/settings/personal/personal.info.php
index 6f8516e6437..d3c666d8385 100644
--- a/apps/settings/templates/settings/personal/personal.info.php
+++ b/apps/settings/templates/settings/personal/personal.info.php
@@ -31,6 +31,7 @@ script('settings', [
'federationsettingsview',
'federationscopemenu',
'settings/personalInfo',
+ 'vue-settings-personal-info',
]);
?>
@@ -126,52 +127,7 @@ script('settings', [
</form>
</div>
<div class="personal-settings-setting-box">
- <form id="emailform" class="section">
- <h3>
- <label for="email"><?php p($l->t('Email')); ?></label>
- <a href="#" class="federation-menu" aria-label="<?php p($l->t('Change privacy level of email')); ?>">
- <span class="icon-federation-menu icon-password">
- <span class="icon-triangle-s"></span>
- </span>
- </a>
- </h3>
- <div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') {
- p('hidden');
- } ?>">
- <img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src="
- <?php
- switch ($_['emailVerification']) {
- case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
- p(image_path('core', 'actions/verifying.svg'));
- break;
- case \OC\Accounts\AccountManager::VERIFIED:
- p(image_path('core', 'actions/verified.svg'));
- break;
- default:
- p(image_path('core', 'actions/verify.svg'));
- }
- ?>">
- </div>
- <input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
- <?php if (!$_['displayNameChangeSupported']) {
- print_unescaped('class="hidden"');
- } ?>
- placeholder="<?php p($l->t('Your email address')); ?>"
- autocomplete="on" autocapitalize="none" autocorrect="off" />
- <span class="icon-checkmark hidden"></span>
- <span class="icon-error hidden" ></span>
- <?php if (!$_['displayNameChangeSupported']) { ?>
- <span><?php if (isset($_['email']) && !empty($_['email'])) {
- p($_['email']);
- } else {
- p($l->t('No email address set'));
- }?></span>
- <?php } ?>
- <?php if ($_['displayNameChangeSupported']) { ?>
- <em><?php p($l->t('For password reset and notifications')); ?></em>
- <?php } ?>
- <input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>">
- </form>
+ <div id="vue-emailsection" class="section"></div>
</div>
<div class="personal-settings-setting-box">
<form id="phoneform" class="section">
@@ -223,8 +179,8 @@ script('settings', [
</h3>
<?php if ($_['lookupServerUploadEnabled']) { ?>
<div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') {
- p('hidden');
- } ?>">
+ p('hidden');
+ } ?>">
<img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
<?php
switch ($_['websiteVerification']) {