unify look of disabled display name / email address and the other input fields
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
f5731e1ba4
commit
1ad4268046
2 changed files with 11 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue