web: cleanup required attr

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-29 18:25:59 +02:00
parent d5281d2023
commit bffa51f7df
7 changed files with 9 additions and 9 deletions

View File

@ -85,7 +85,7 @@ export class AuthenticatorTOTPStage extends BaseStage {
autofocus=""
autocomplete="one-time-code"
class="pf-c-form-control"
required="">
required>
</ak-form-element>
<div class="pf-c-form__group pf-m-action">

View File

@ -63,7 +63,7 @@ export class AuthenticatorValidateStageWebCode extends BaseStage {
autocomplete="one-time-code"
class="pf-c-form-control"
value="${PasswordManagerPrefill.totp || ""}"
required="">
required>
</ak-form-element>
<div class="pf-c-form__group pf-m-action">

View File

@ -186,7 +186,7 @@ export class IdentificationStage extends BaseStage {
autofocus=""
autocomplete="username"
class="pf-c-form-control"
required="">
required>
</ak-form-element>
<div class="pf-c-form__group pf-m-action">

View File

@ -63,7 +63,7 @@ export class PasswordStage extends BaseStage {
autofocus=""
autocomplete="current-password"
class="pf-c-form-control"
required=""
required
value=${PasswordManagerPrefill.password || ""}>
</ak-form-element>

View File

@ -26,7 +26,7 @@ export class CertificateKeyPairForm extends Form<CertificateGeneration> {
label=${gettext("Common Name")}
name="commonName"
?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
label=${gettext("Subject-alt name")}

View File

@ -43,7 +43,7 @@ export class GroupForm extends Form<Group> {
label=${gettext("Name")}
?required=${true}
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 name="isSuperuser">
<div class="pf-c-check">

View File

@ -42,21 +42,21 @@ export class UserForm extends Form<User> {
label=${gettext("Username")}
?required=${true}
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>
</ak-form-element-horizontal>
<ak-form-element-horizontal
label=${gettext("Name")}
?required=${true}
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>
</ak-form-element-horizontal>
<ak-form-element-horizontal
label=${gettext("Email")}
?required=${true}
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
name="isActive">