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/personal.php | |
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/personal.php')
-rw-r--r-- | settings/personal.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/personal.php b/settings/personal.php index 1780dddb556..a18a88a9b63 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -47,6 +47,7 @@ $urlGenerator = \OC::$server->getURLGenerator(); OC_Util::addScript('settings', 'authtoken'); OC_Util::addScript('settings', 'authtoken_collection'); OC_Util::addScript('settings', 'authtoken_view'); +OC_Util::addScript('settings', 'usersettings'); OC_Util::addScript('settings', 'federationsettingsview'); OC_Util::addScript('settings', 'federationscopemenu'); OC_Util::addScript('settings', 'personal'); @@ -164,6 +165,18 @@ $tmpl->assign('activelanguage', $userLang); $tmpl->assign('passwordChangeSupported', OC_User::canUserChangePassword(OC_User::getUser())); $tmpl->assign('displayNameChangeSupported', OC_User::canUserChangeDisplayName(OC_User::getUser())); $tmpl->assign('displayName', OC_User::getDisplayName()); +// TODO: insert real data +$tmpl->assign('phone', '+43 660 56565 5446'); +$tmpl->assign('website', 'owncloud.org'); +$tmpl->assign('address', 'Stuttgart'); + +$tmpl->assign('avatarScope', 'contacts'); +$tmpl->assign('displayNameScope', 'public'); +$tmpl->assign('phoneScope', 'contacts'); +$tmpl->assign('emailScope', 'contacts'); +$tmpl->assign('websiteScope', 'public'); +$tmpl->assign('addressScope', 'private'); +// END TODO $tmpl->assign('enableAvatars', $config->getSystemValue('enable_avatars', true) === true); $tmpl->assign('avatarChangeSupported', OC_User::canUserChangeAvatar(OC_User::getUser())); $tmpl->assign('certs', $certificateManager->listCertificates()); |