Fix# form: toggle password visibility for oc and nc
This commit is contained in:
parent
f9f768da5f
commit
7f00ff5357
|
|
@ -30,12 +30,3 @@ input[type="submit"] {
|
||||||
.groupofone {
|
.groupofone {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#show-password {
|
|
||||||
margin-left: 0px!important;
|
|
||||||
padding-left: 0px!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#submit {
|
|
||||||
margin-top: 24px!important;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,5 @@ function togglePasswordTextFieldVisibility() {
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
passwordTextField = $("#password");
|
passwordTextField = $("#password");
|
||||||
$("#show").change(togglePasswordTextFieldVisibility);
|
$("#show").change(togglePasswordTextFieldVisibility);
|
||||||
|
$("#showadminpass").change(togglePasswordTextFieldVisibility);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,13 @@ if ( \OCP\Util::getVersion()[0] >= 12 )
|
||||||
<input type="password" name="password" id="password" placeholder="<?php p($l->t('Password')); ?>"/>
|
<input type="password" name="password" id="password" placeholder="<?php p($l->t('Password')); ?>"/>
|
||||||
<label for="password" class="infield"><?php p($l->t( 'Password' )); ?></label>
|
<label for="password" class="infield"><?php p($l->t( 'Password' )); ?></label>
|
||||||
<img id="password-icon" class="svg" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/>
|
<img id="password-icon" class="svg" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/>
|
||||||
|
<?php if ( \OC::$server->getConfig()->getAppValue('core', 'vendor', '') === 'nextcloud' ) { ?>
|
||||||
<input id="show" name="show" type="checkbox">
|
<input id="show" name="show" type="checkbox">
|
||||||
<label id="show-password" style="display: inline;" for="show"><?php p($l->t( 'Show password' )); ?></label>
|
<label id="show-password" style="display: inline;" for="show"></label>
|
||||||
|
<?php } else { ?>
|
||||||
|
<input type="checkbox" id="showadminpass" name="showadminpass">
|
||||||
|
<label for="showadminpass"></label>
|
||||||
|
<?php } ?>
|
||||||
</p>
|
</p>
|
||||||
<input type="submit" id="submit" value="<?php p($l->t('Create account')); ?>" />
|
<input type="submit" id="submit" value="<?php p($l->t('Create account')); ?>" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue