From f5731e1ba46dd4238e675ff05bae9fe50b6d0589 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 7 Jun 2017 15:01:54 +0200 Subject: [PATCH 1/2] show input fields if they are not empty but disable them in global scale mode Signed-off-by: Bjoern Schiessle --- settings/templates/personal.php | 36 ++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 5dc6abf2b38..1eee69c2b5b 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -131,41 +131,50 @@ - +

- + value="" placeholder="t('Your phone number')); ?>" autocomplete="on" autocapitalize="none" autocorrect="off" />
+ +

- placeholder="t('Your postal address')); ?>" value="" autocomplete="on" autocapitalize="none" autocorrect="off" />
+ +

+
+ autocomplete="on" autocapitalize="none" autocorrect="off" + + />
+ +

+
+ autocomplete="on" autocapitalize="none" autocorrect="off" + + />
@@ -353,7 +375,7 @@ if($_['passwordChangeSupported']) {

t('App passwords'));?>

t('Here you can generate individual passwords for apps so you don’t have to give out your password. You can revoke them individually too.'));?>

- +
From 1ad4268046ad92f5ae6e23312854d3ee87aa2023 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 7 Jun 2017 18:03:47 +0200 Subject: [PATCH 2/2] unify look of disabled display name / email address and the other input fields Signed-off-by: Bjoern Schiessle --- settings/css/settings.css | 7 +++++++ settings/templates/personal.php | 14 ++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 1280f5237a4..9d12f001ca5 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -187,6 +187,13 @@ input#openid, input#webdav { cursor: pointer; } +#personal-settings-container input:disabled { + background-color: white; + color: black; + border: none; + opacity: 100; +} + .verification-dialog { display: none; right: -9px; diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 1eee69c2b5b..8245216d1b4 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -81,12 +81,9 @@ + value="" autocomplete="on" autocapitalize="none" autocorrect="off" /> - - t('No display name set')); } ?> -
- - placeholder="t('Your email address')); ?>" + + placeholder="t('Your email address')) ?>" autocomplete="on" autocapitalize="none" autocorrect="off" /> - - t('No email address set')); }?> -
t('For password reset and notifications')); ?>