diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-04-20 17:03:50 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-21 11:29:24 +0100 |
commit | 20739c93a680d7085d0e71c0e4f9c0bb24018fb9 (patch) | |
tree | ca8659d0fe9de7388a301fe14cee8f2cf2e88a96 /settings/templates | |
parent | c42d977185648fcc34c8e0135973ebc1c4776512 (diff) | |
download | nextcloud-server-20739c93a680d7085d0e71c0e4f9c0bb24018fb9.tar.gz nextcloud-server-20739c93a680d7085d0e71c0e4f9c0bb24018fb9.zip |
Persist settings on the server
Persist personal settings federated sharing scopes
Show new settings fields in read-only mode too
Insert values on page load
Return updated values; show inline success feedback
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/personal.php | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 4fb9cefdeb0..3f59954b6dd 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -71,6 +71,8 @@ if($_['displayNameChangeSupported']) { <input type="text" id="displayname" name="displayname" value="<?php p($_['displayName']) ?>" autocomplete="on" autocapitalize="off" autocorrect="off" /> + <span class="icon-checkmark hidden"/> + <input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>"> </form> </div> <div class="personal-settings-setting-box"> @@ -82,6 +84,8 @@ if($_['displayNameChangeSupported']) { <input type="tel" id="phone" name="phone" value="<?php p($_['phone']) ?>" autocomplete="on" autocapitalize="off" autocorrect="off" /> + <span class="icon-checkmark hidden"/> + <input type="hidden" id="phonescope" value="<?php p($_['phoneScope']) ?>"> </form> </div> <div class="personal-settings-setting-box"> @@ -93,8 +97,10 @@ if($_['displayNameChangeSupported']) { <input type="email" name="email" id="email" value="<?php p($_['email']); ?>" placeholder="<?php p($l->t('Your email address')); ?>" autocomplete="on" autocapitalize="off" autocorrect="off" /> + <input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>"> <br /> <em><?php p($l->t('For password recovery and notifications')); ?></em> + <span class="icon-checkmark hidden"/> </form> </div> <div class="personal-settings-setting-box"> @@ -106,6 +112,8 @@ if($_['displayNameChangeSupported']) { <input type="text" name="website" id="website" value="<?php p($_['website']); ?>" placeholder="<?php p($l->t('Your website')); ?>" autocomplete="on" autocapitalize="off" autocorrect="off" /> + <span class="icon-checkmark hidden"/> + <input type="hidden" id="websitescope" value="<?php p($_['websiteScope']) ?>"> </form> </div> <div class="personal-settings-setting-box"> @@ -117,6 +125,8 @@ if($_['displayNameChangeSupported']) { <input type="text" id="address" name="address" value="<?php p($_['address']) ?>" autocomplete="on" autocapitalize="off" autocorrect="off" /> + <span class="icon-checkmark hidden"/> + <input type="hidden" id="addressscope" value="<?php p($_['addressScope']) ?>"> </form> </div> <span class="msg"></span> @@ -149,13 +159,31 @@ if($_['displayNameChangeSupported']) { <?php } else { ?> -======= ->>>>>>> Add more personal information fields to the settings page for enhanced federated sharing <div id="lostpassword" class="section"> <h2><?php echo $l->t('Email'); ?></h2> <span><?php if(isset($_['email'][0])) { p($_['email']); } else { p($l->t('No email address set')); }?></span> +<div id="personal-settings-container" class="no-edit"> + <div id="displaynameform" class="section"> + <h2><?php p($l->t('Full name'));?></h2> + <span><?php if(isset($_['displayName'][0])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span> + </div> + <div id="emailform" class="section"> + <h2><?php p($l->t('Email')); ?></h2> + <span><?php if(isset($_['email'][0])) { p($_['email']); } else { p($l->t('No email address set')); }?></span> + </div> + <div id="phoneform" class="section"> + <h2><?php p($l->t('Phone')); ?></h2> + <span><?php if(isset($_['phone'][0])) { p($_['phone']); } else { p($l->t('No phone number set')); }?></span> + </div> + <div id="websiteform" class="section"> + <h2><?php p($l->t('Website')); ?></h2> + <span><?php if(isset($_['website'][0])) { p($_['website']); } else { p($l->t('No website set')); }?></span> + </div> + <div id="addressform" class="section"> + <h2><?php p($l->t('Address')); ?></h2> + <span><?php if(isset($_['address'][0])) { p($_['address']); } else { p($l->t('No address set')); }?></span> + </div> </div> -<!-- TODO: show phone/address --> <?php } ?> |