web: cleanup required attr
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d5281d2023
commit
bffa51f7df
|
@ -85,7 +85,7 @@ export class AuthenticatorTOTPStage extends BaseStage {
|
||||||
autofocus=""
|
autofocus=""
|
||||||
autocomplete="one-time-code"
|
autocomplete="one-time-code"
|
||||||
class="pf-c-form-control"
|
class="pf-c-form-control"
|
||||||
required="">
|
required>
|
||||||
</ak-form-element>
|
</ak-form-element>
|
||||||
|
|
||||||
<div class="pf-c-form__group pf-m-action">
|
<div class="pf-c-form__group pf-m-action">
|
||||||
|
|
|
@ -63,7 +63,7 @@ export class AuthenticatorValidateStageWebCode extends BaseStage {
|
||||||
autocomplete="one-time-code"
|
autocomplete="one-time-code"
|
||||||
class="pf-c-form-control"
|
class="pf-c-form-control"
|
||||||
value="${PasswordManagerPrefill.totp || ""}"
|
value="${PasswordManagerPrefill.totp || ""}"
|
||||||
required="">
|
required>
|
||||||
</ak-form-element>
|
</ak-form-element>
|
||||||
|
|
||||||
<div class="pf-c-form__group pf-m-action">
|
<div class="pf-c-form__group pf-m-action">
|
||||||
|
|
|
@ -186,7 +186,7 @@ export class IdentificationStage extends BaseStage {
|
||||||
autofocus=""
|
autofocus=""
|
||||||
autocomplete="username"
|
autocomplete="username"
|
||||||
class="pf-c-form-control"
|
class="pf-c-form-control"
|
||||||
required="">
|
required>
|
||||||
</ak-form-element>
|
</ak-form-element>
|
||||||
|
|
||||||
<div class="pf-c-form__group pf-m-action">
|
<div class="pf-c-form__group pf-m-action">
|
||||||
|
|
|
@ -63,7 +63,7 @@ export class PasswordStage extends BaseStage {
|
||||||
autofocus=""
|
autofocus=""
|
||||||
autocomplete="current-password"
|
autocomplete="current-password"
|
||||||
class="pf-c-form-control"
|
class="pf-c-form-control"
|
||||||
required=""
|
required
|
||||||
value=${PasswordManagerPrefill.password || ""}>
|
value=${PasswordManagerPrefill.password || ""}>
|
||||||
</ak-form-element>
|
</ak-form-element>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ export class CertificateKeyPairForm extends Form<CertificateGeneration> {
|
||||||
label=${gettext("Common Name")}
|
label=${gettext("Common Name")}
|
||||||
name="commonName"
|
name="commonName"
|
||||||
?required=${true}>
|
?required=${true}>
|
||||||
<input type="text" class="pf-c-form-control" required="">
|
<input type="text" class="pf-c-form-control" required>
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
label=${gettext("Subject-alt name")}
|
label=${gettext("Subject-alt name")}
|
||||||
|
|
|
@ -43,7 +43,7 @@ export class GroupForm extends Form<Group> {
|
||||||
label=${gettext("Name")}
|
label=${gettext("Name")}
|
||||||
?required=${true}
|
?required=${true}
|
||||||
name="name">
|
name="name">
|
||||||
<input type="text" value="${ifDefined(this.group?.name)}" class="pf-c-form-control" required="">
|
<input type="text" value="${ifDefined(this.group?.name)}" class="pf-c-form-control" required>
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal name="isSuperuser">
|
<ak-form-element-horizontal name="isSuperuser">
|
||||||
<div class="pf-c-check">
|
<div class="pf-c-check">
|
||||||
|
|
|
@ -42,21 +42,21 @@ export class UserForm extends Form<User> {
|
||||||
label=${gettext("Username")}
|
label=${gettext("Username")}
|
||||||
?required=${true}
|
?required=${true}
|
||||||
name="username">
|
name="username">
|
||||||
<input type="text" value="${ifDefined(this.user?.username)}" class="pf-c-form-control" required="">
|
<input type="text" value="${ifDefined(this.user?.username)}" class="pf-c-form-control" required>
|
||||||
<p class="pf-c-form__helper-text">${gettext("Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.")}</p>
|
<p class="pf-c-form__helper-text">${gettext("Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.")}</p>
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
label=${gettext("Name")}
|
label=${gettext("Name")}
|
||||||
?required=${true}
|
?required=${true}
|
||||||
name="name">
|
name="name">
|
||||||
<input type="text" value="${ifDefined(this.user?.name)}" class="pf-c-form-control" required="">
|
<input type="text" value="${ifDefined(this.user?.name)}" class="pf-c-form-control" required>
|
||||||
<p class="pf-c-form__helper-text">${gettext("User's display name.")}</p>
|
<p class="pf-c-form__helper-text">${gettext("User's display name.")}</p>
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
label=${gettext("Email")}
|
label=${gettext("Email")}
|
||||||
?required=${true}
|
?required=${true}
|
||||||
name="email">
|
name="email">
|
||||||
<input type="email" autocomplete="off" value="${ifDefined(this.user?.email)}" class="pf-c-form-control" required="">
|
<input type="email" autocomplete="off" value="${ifDefined(this.user?.email)}" class="pf-c-form-control" required>
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
name="isActive">
|
name="isActive">
|
||||||
|
|
Reference in New Issue