mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Tweak user edit form
This commit is contained in:
parent
dfec249dbd
commit
c28cfcda9f
1 changed files with 6 additions and 6 deletions
|
@ -40,16 +40,11 @@ $passwordAction = $passwordAction ?? Enums\PasswordActionType::None;
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="password-action" value="<?= Enums\PasswordActionType::None->value ?>"<? if($passwordAction == Enums\PasswordActionType::None){ ?> checked="checked"<? } ?> />Don’t change password
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
<? if($user->PasswordHash === null){ ?>
|
<? if($user->PasswordHash === null){ ?>
|
||||||
<li>
|
<li>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="password-action" value="<?= Enums\PasswordActionType::Edit->value ?>"<? if($passwordAction == Enums\PasswordActionType::Edit){ ?> checked="checked"<? } ?> />Create a new password
|
<input type="checkbox" name="password-action" value="<?= Enums\PasswordActionType::Edit->value ?>"<? if($passwordAction == Enums\PasswordActionType::Edit){ ?> checked="checked"<? } ?> />Set a password
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
Password
|
Password
|
||||||
|
@ -61,6 +56,11 @@ $passwordAction = $passwordAction ?? Enums\PasswordActionType::None;
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</li>
|
</li>
|
||||||
<? }else{ ?>
|
<? }else{ ?>
|
||||||
|
<li>
|
||||||
|
<label>
|
||||||
|
<input type="radio" name="password-action" value="<?= Enums\PasswordActionType::None->value ?>"<? if($passwordAction == Enums\PasswordActionType::None){ ?> checked="checked"<? } ?> />Don’t change password
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="password-action" value="<?= Enums\PasswordActionType::Delete->value ?>"<? if($passwordAction == Enums\PasswordActionType::Delete){ ?> checked="checked"<? } ?> />Remove password
|
<input type="radio" name="password-action" value="<?= Enums\PasswordActionType::Delete->value ?>"<? if($passwordAction == Enums\PasswordActionType::Delete){ ?> checked="checked"<? } ?> />Remove password
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue