Skip to content

Commit

Permalink
Remove form role on forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Sep 26, 2024
1 parent faa547e commit 59ba7f3
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h1 class="visually-hidden" i18n>Configuration</h1>
Updating instance configuration from the web interface is disabled by the system administrator.
</my-alert>

<form role="form" [formGroup]="form">
<form [formGroup]="form">

<div ngbNav #nav="ngbNav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" class="nav-tabs">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h2 class="visually-hidden">EDIT USER {{ user.username }}</h2>

<div class="content-col">
<div class="row">
<form class="col" role="form" (ngSubmit)="formValidated()" [formGroup]="form">
<form class="col" (ngSubmit)="formValidated()" [formGroup]="form">
<div class="form-group" *ngIf="isCreation()">
<label i18n for="username">Username</label>
<input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
<form (ngSubmit)="formValidated()" [formGroup]="form">

<div class="input-group">
<input id="password"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2>
{{ plugin.name }}
</h2>

<form *ngIf="hasRegisteredSettings()" role="form" (ngSubmit)="formValidated()" [formGroup]="form">
<form *ngIf="hasRegisteredSettings()" (ngSubmit)="formValidated()" [formGroup]="form">
<div class="form-group" *ngFor="let setting of registeredSettings" [id]="getWrapperId(setting)">
<my-dynamic-form-field [hidden]="isSettingHidden(setting)" [form]="form" [setting]="setting" [formErrors]="formErrors"></my-dynamic-form-field>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/+login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h5 class="alert-heading" i18n>
<div class="wrapper">
<div class="login-form-and-externals">

<form class="w-100 m-0" myPluginSelector pluginSelectorId="login-form" role="form" (ngSubmit)="login()" [formGroup]="form">
<form class="w-100 m-0" myPluginSelector pluginSelectorId="login-form" (ngSubmit)="login()" [formGroup]="form">
<ng-container *ngIf="!otpStep">
<div class="form-group">
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<my-alert *ngIf="error" type="danger">{{ error }}</my-alert>

<div class="margin-content pt-4">
<form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
<form (ngSubmit)="formValidated()" [formGroup]="form">

<div class="pt-two-cols"> <!-- channel grid -->
<div class="title-col">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<strong>{{ user.pendingEmail }}</strong> is awaiting email verification
</div>

<form role="form" class="change-email" (ngSubmit)="changeEmail()" [formGroup]="form">
<form class="change-email" (ngSubmit)="changeEmail()" [formGroup]="form">

<div class="form-group">
<label i18n for="new-email">Change your email</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<my-alert *ngIf="error" type="danger">{{ error }}</my-alert>

<form role="form" (ngSubmit)="changePassword()" [formGroup]="form">
<form (ngSubmit)="changePassword()" [formGroup]="form">

<label i18n for="current-password">Change password</label>
<my-input-text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="updateEmailPublic()" [formGroup]="form">
<form (ngSubmit)="updateEmailPublic()" [formGroup]="form">

<div class="form-group">
<my-peertube-checkbox
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<my-alert *ngIf="error" type="danger">{{ error }}</my-alert>

<form role="form" (ngSubmit)="updateMyProfile()" [formGroup]="form">
<form (ngSubmit)="updateMyProfile()" [formGroup]="form">

<div class="form-group">
<label i18n for="username">Username</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>

<div class="root" *ngIf="twoFactorAlreadyEnabled === false">
<ng-container *ngIf="step === 'request'">
<form role="form" (ngSubmit)="requestTwoFactor()" [formGroup]="formPassword">
<form (ngSubmit)="requestTwoFactor()" [formGroup]="formPassword">

<label i18n for="current-password">Your password</label>
<div class="form-group-description" i18n>Confirm your password to enable two factor authentication</div>
Expand Down Expand Up @@ -37,7 +37,7 @@ <h1>

<div class="secret-plain-text">{{ twoFactorSecret }}</div>

<form class="mt-3" role="form" (ngSubmit)="confirmTwoFactor()" [formGroup]="formOTP">
<form class="mt-3" (ngSubmit)="confirmTwoFactor()" [formGroup]="formOTP">

<label i18n for="otp-token">Two-factor code</label>
<div class="form-group-description" i18n>Enter the code generated by your authenticator app to confirm</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h2 i18n>NEW SYNCHRONIZATION</h2>
</div>

<div class="content-col">
<form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
<form (ngSubmit)="formValidated()" [formGroup]="form">

<div class="form-group">
<label i18n for="externalChannelUrl">Remote channel URL</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h2 class="visually-hidden" i18n>UPDATE PLAYLIST</h2>
</div>

<div class="content-col">
<form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
<form (ngSubmit)="formValidated()" [formGroup]="form">

<div class="form-group">
<label for="thumbnailfile" i18n>Playlist thumbnail</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="margin-content">
<h1 i18n class="title-page">Reset my password</h1>

<form role="form" (ngSubmit)="resetPassword()" [formGroup]="form">
<form (ngSubmit)="resetPassword()" [formGroup]="form">
<div class="form-group">
<label i18n for="password">Password</label>

Expand Down
2 changes: 1 addition & 1 deletion client/src/app/+search/search-filters.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="formUpdated()">
<form (ngSubmit)="formUpdated()">

<div class="row">
<div class="col-lg-4 col-md-6 col-xs-12">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</p>
</div>

<form role="form" [formGroup]="form">
<form [formGroup]="form">

<div class="row">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form role="form" [formGroup]="form">
<form [formGroup]="form">

<div *ngIf="requiresApproval" class="form-group">
<label i18n for="registrationReason">Why do you want to join {{ instanceName }}?</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Video uploads are disabled on this instance, hence your account won't be able to upload videos.
</my-alert>

<form role="form" [formGroup]="form">
<form [formGroup]="form">
<div class="row">

<div class="col-md-12 col-xl-6 form-group">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="margin-content">
<h1 i18n class="title-page">Request email for account verification</h1>

<form *ngIf="requiresEmailVerification; else emailVerificationNotRequired" role="form" (ngSubmit)="askSendVerifyEmail()" [formGroup]="form">
<form *ngIf="requiresEmailVerification; else emailVerificationNotRequired" (ngSubmit)="askSendVerifyEmail()" [formGroup]="form">
<div class="form-group">
<label i18n for="verify-email-email">Email</label>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1 class="title-page" i18n>Studio for {{ video.name }}</h1>

<div class="grid-container">
<form role="form" [formGroup]="form">
<form [formGroup]="form">

<div class="section cut" formGroupName="cut">
<h2 i18n>CUT VIDEO</h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="updateInterfaceSettings()" [formGroup]="form">
<form (ngSubmit)="updateInterfaceSettings()" [formGroup]="form">

<div class="form-group">
<label i18n for="theme">Theme</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="updateDetails()" [formGroup]="form">
<form (ngSubmit)="updateDetails()" [formGroup]="form">
<div class="form-group">
<div class="anchor" id="video-sensitive-content-policy"></div> <!-- video-sensitive-content-policy anchor -->
<label i18n for="nsfwPolicy">Default policy on videos containing sensitive content</label>
Expand Down

0 comments on commit 59ba7f3

Please sign in to comment.