Remove form role on forms

This commit is contained in:
Chocobozzz 2024-09-26 16:42:39 +02:00
parent faa547e4a6
commit 59ba7f3b74
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
22 changed files with 23 additions and 23 deletions

View File

@ -4,7 +4,7 @@
Updating instance configuration from the web interface is disabled by the system administrator. Updating instance configuration from the web interface is disabled by the system administrator.
</my-alert> </my-alert>
<form role="form" [formGroup]="form"> <form [formGroup]="form">
<div ngbNav #nav="ngbNav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" class="nav-tabs"> <div ngbNav #nav="ngbNav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" class="nav-tabs">

View File

@ -85,7 +85,7 @@
<div class="content-col"> <div class="content-col">
<div class="row"> <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()"> <div class="form-group" *ngIf="isCreation()">
<label i18n for="username">Username</label> <label i18n for="username">Username</label>
<input <input

View File

@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> <form (ngSubmit)="formValidated()" [formGroup]="form">
<div class="input-group"> <div class="input-group">
<input id="password" <input id="password"

View File

@ -5,7 +5,7 @@
{{ plugin.name }} {{ plugin.name }}
</h2> </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)"> <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> <my-dynamic-form-field [hidden]="isSettingHidden(setting)" [form]="form" [setting]="setting" [formErrors]="formErrors"></my-dynamic-form-field>
</div> </div>

View File

@ -48,7 +48,7 @@
<div class="wrapper"> <div class="wrapper">
<div class="login-form-and-externals"> <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"> <ng-container *ngIf="!otpStep">
<div class="form-group"> <div class="form-group">
<div> <div>

View File

@ -1,7 +1,7 @@
<my-alert *ngIf="error" type="danger">{{ error }}</my-alert> <my-alert *ngIf="error" type="danger">{{ error }}</my-alert>
<div class="margin-content pt-4"> <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="pt-two-cols"> <!-- channel grid -->
<div class="title-col"> <div class="title-col">

View File

@ -5,7 +5,7 @@
<strong>{{ user.pendingEmail }}</strong> is awaiting email verification <strong>{{ user.pendingEmail }}</strong> is awaiting email verification
</div> </div>
<form role="form" class="change-email" (ngSubmit)="changeEmail()" [formGroup]="form"> <form class="change-email" (ngSubmit)="changeEmail()" [formGroup]="form">
<div class="form-group"> <div class="form-group">
<label i18n for="new-email">Change your email</label> <label i18n for="new-email">Change your email</label>

View File

@ -1,6 +1,6 @@
<my-alert *ngIf="error" type="danger">{{ error }}</my-alert> <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> <label i18n for="current-password">Change password</label>
<my-input-text <my-input-text

View File

@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="updateEmailPublic()" [formGroup]="form"> <form (ngSubmit)="updateEmailPublic()" [formGroup]="form">
<div class="form-group"> <div class="form-group">
<my-peertube-checkbox <my-peertube-checkbox

View File

@ -1,6 +1,6 @@
<my-alert *ngIf="error" type="danger">{{ error }}</my-alert> <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"> <div class="form-group">
<label i18n for="username">Username</label> <label i18n for="username">Username</label>

View File

@ -9,7 +9,7 @@
<div class="root" *ngIf="twoFactorAlreadyEnabled === false"> <div class="root" *ngIf="twoFactorAlreadyEnabled === false">
<ng-container *ngIf="step === 'request'"> <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> <label i18n for="current-password">Your password</label>
<div class="form-group-description" i18n>Confirm your password to enable two factor authentication</div> <div class="form-group-description" i18n>Confirm your password to enable two factor authentication</div>
@ -37,7 +37,7 @@
<div class="secret-plain-text">{{ twoFactorSecret }}</div> <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> <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> <div class="form-group-description" i18n>Enter the code generated by your authenticator app to confirm</div>

View File

@ -7,7 +7,7 @@
</div> </div>
<div class="content-col"> <div class="content-col">
<form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> <form (ngSubmit)="formValidated()" [formGroup]="form">
<div class="form-group"> <div class="form-group">
<label i18n for="externalChannelUrl">Remote channel URL</label> <label i18n for="externalChannelUrl">Remote channel URL</label>

View File

@ -30,7 +30,7 @@
</div> </div>
<div class="content-col"> <div class="content-col">
<form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> <form (ngSubmit)="formValidated()" [formGroup]="form">
<div class="form-group"> <div class="form-group">
<label for="thumbnailfile" i18n>Playlist thumbnail</label> <label for="thumbnailfile" i18n>Playlist thumbnail</label>

View File

@ -1,7 +1,7 @@
<div class="margin-content"> <div class="margin-content">
<h1 i18n class="title-page">Reset my password</h1> <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"> <div class="form-group">
<label i18n for="password">Password</label> <label i18n for="password">Password</label>

View File

@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="formUpdated()"> <form (ngSubmit)="formUpdated()">
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-6 col-xs-12"> <div class="col-lg-4 col-md-6 col-xs-12">

View File

@ -13,7 +13,7 @@
</p> </p>
</div> </div>
<form role="form" [formGroup]="form"> <form [formGroup]="form">
<div class="row"> <div class="row">

View File

@ -1,4 +1,4 @@
<form role="form" [formGroup]="form"> <form [formGroup]="form">
<div *ngIf="requiresApproval" class="form-group"> <div *ngIf="requiresApproval" class="form-group">
<label i18n for="registrationReason">Why do you want to join {{ instanceName }}?</label> <label i18n for="registrationReason">Why do you want to join {{ instanceName }}?</label>

View File

@ -2,7 +2,7 @@
Video uploads are disabled on this instance, hence your account won't be able to upload videos. Video uploads are disabled on this instance, hence your account won't be able to upload videos.
</my-alert> </my-alert>
<form role="form" [formGroup]="form"> <form [formGroup]="form">
<div class="row"> <div class="row">
<div class="col-md-12 col-xl-6 form-group"> <div class="col-md-12 col-xl-6 form-group">

View File

@ -1,7 +1,7 @@
<div class="margin-content"> <div class="margin-content">
<h1 i18n class="title-page">Request email for account verification</h1> <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"> <div class="form-group">
<label i18n for="verify-email-email">Email</label> <label i18n for="verify-email-email">Email</label>

View File

@ -2,7 +2,7 @@
<h1 class="title-page" i18n>Studio for {{ video.name }}</h1> <h1 class="title-page" i18n>Studio for {{ video.name }}</h1>
<div class="grid-container"> <div class="grid-container">
<form role="form" [formGroup]="form"> <form [formGroup]="form">
<div class="section cut" formGroupName="cut"> <div class="section cut" formGroupName="cut">
<h2 i18n>CUT VIDEO</h2> <h2 i18n>CUT VIDEO</h2>

View File

@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="updateInterfaceSettings()" [formGroup]="form"> <form (ngSubmit)="updateInterfaceSettings()" [formGroup]="form">
<div class="form-group"> <div class="form-group">
<label i18n for="theme">Theme</label> <label i18n for="theme">Theme</label>

View File

@ -1,4 +1,4 @@
<form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> <form (ngSubmit)="updateDetails()" [formGroup]="form">
<div class="form-group"> <div class="form-group">
<div class="anchor" id="video-sensitive-content-policy"></div> <!-- video-sensitive-content-policy anchor --> <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> <label i18n for="nsfwPolicy">Default policy on videos containing sensitive content</label>