aboutsummaryrefslogtreecommitdiffstats
path: root/settings/templates/personal.php
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-06-07 18:03:47 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2017-06-07 18:07:53 +0200
commit1ad4268046ad92f5ae6e23312854d3ee87aa2023 (patch)
treed498c9ecc7ac78927af35e96ccccaf30d7d35045 /settings/templates/personal.php
parentf5731e1ba46dd4238e675ff05bae9fe50b6d0589 (diff)
downloadnextcloud-server-1ad4268046ad92f5ae6e23312854d3ee87aa2023.tar.gz
nextcloud-server-1ad4268046ad92f5ae6e23312854d3ee87aa2023.zip
unify look of disabled display name / email address and the other input fields
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'settings/templates/personal.php')
-rw-r--r--settings/templates/personal.php14
1 files changed, 4 insertions, 10 deletions
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 @@
<span class="icon-password"/>
</h2>
<input type="text" id="displayname" name="displayname"
- <?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
+ <?php if(!$_['displayNameChangeSupported']) { print_unescaped('disabled="1"'); } ?>
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"/>
<?php if($_['lookupServerUploadEnabled']) { ?>
<input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>">
@@ -114,13 +111,10 @@
}
?>">
</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')); ?>"
+ <input type="email" name="email" id="email" value="<?php if(!$_['displayNameChangeSupported'] && empty($_['email'])) p($l->t('No email address set')); else p($_['email']); ?>"
+ <?php if(!$_['displayNameChangeSupported']) { print_unescaped('disabled="1"'); } ?>
+ placeholder="<?php p($l->t('Your email address')) ?>"
autocomplete="on" autocapitalize="none" autocorrect="off" />
- <?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']) { ?>
<br />
<em><?php p($l->t('For password reset and notifications')); ?></em>