Skip to content

Commit

Permalink
Merge pull request jhipster#25934 from mshima/role-form
Browse files Browse the repository at this point in the history
fix 48 sonar bugs
  • Loading branch information
DanielFran authored Apr 24, 2024
2 parents 98fbb03 + 4e4a271 commit 064fc6d
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

@if (key() && !success()) {
<div>
<form name="form" role="form" (ngSubmit)="finishReset()" [formGroup]="passwordForm">
<form name="form" (ngSubmit)="finishReset()" [formGroup]="passwordForm">
<div class="mb-3">
<label class="form-label" for="newPassword">__jhiTranslateTag__('global.form.newpassword.label')</label>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="alert alert-warning">
<span>__jhiTranslateTag__('reset.request.messages.info')</span>
</div>
<form name="form" role="form" (ngSubmit)="requestReset()" [formGroup]="resetRequestForm">
<form name="form" (ngSubmit)="requestReset()" [formGroup]="resetRequestForm">
<div class="mb-3">
<label class="form-label" for="email">__jhiTranslateTag__('global.form.email.label')</label>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="alert alert-danger">__jhiTranslateTag__('global.messages.error.dontmatch')</div>
}

<form name="form" role="form" (ngSubmit)="changePassword()" [formGroup]="passwordForm">
<form name="form" (ngSubmit)="changePassword()" [formGroup]="passwordForm">
<div class="mb-3">
<label class="form-label" for="currentPassword">__jhiTranslateTag__('global.form.currentpassword.label')</label>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div class="d-flex justify-content-center">
<div class="col-md-8">
@if (!success()) {
<form name="form" role="form" (ngSubmit)="register()" [formGroup]="registerForm">
<form name="form" (ngSubmit)="register()" [formGroup]="registerForm">
<div class="mb-3">
<label class="form-label" for="login">__jhiTranslateTag__('global.form.username.label')</label>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<<%= jhiPrefixDashed %>-alert-error></<%= jhiPrefixDashed %>-alert-error>

@if (settingsForm.value.login) {
<form name="form" role="form" (ngSubmit)="save()" [formGroup]="settingsForm" novalidate>
<form name="form" (ngSubmit)="save()" [formGroup]="settingsForm" novalidate>
<div class="mb-3">
<label class="form-label" for="firstName">__jhiTranslateTag__('settings.form.firstname')</label>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-%>
<div class="d-flex justify-content-center">
<div class="col-8">
<form name="editForm" role="form" novalidate (ngSubmit)="save()" [formGroup]="editForm">
<form name="editForm" novalidate (ngSubmit)="save()" [formGroup]="editForm">
<h2 id="myUserLabel">__jhiTranslateTag__('userManagement.home.createOrEditLabel')</h2>

<<%= jhiPrefixDashed %>-alert-error></<%= jhiPrefixDashed %>-alert-error>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-%>
<div class="d-flex justify-content-center">
<div class="col-8">
<form name="editForm" role="form" novalidate (ngSubmit)="save()" [formGroup]="editForm">
<form name="editForm" novalidate (ngSubmit)="save()" [formGroup]="editForm">
<h2 id="<%= jhiPrefixDashed %>-<%= entityFileName %>-heading" data-cy="<%= entityClass %>CreateUpdateHeading">__jhiTranslateTag__('<%- i18nKeyPrefix %>.home.createOrEditLabel')</h2>

<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
data-cy="loginError"
>__jhiTranslateTag__('login.messages.error.authentication')</div>
}
<form class="form" role="form" (ngSubmit)="login()" [formGroup]="loginForm">
<form class="form" (ngSubmit)="login()" [formGroup]="loginForm">
<div class="mb-3">
<label class="username-label" for="username">__jhiTranslateTag__('global.form.username.label')</label>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
The password and its confirmation do not match!
</div>

<form name="form" role="form" id="password-form" v-on:submit.prevent="changePassword()">
<form name="form" id="password-form" v-on:submit.prevent="changePassword()">
<div class="form-group">
<label class="form-control-label" for="currentPassword"
v-text="t$('global.form[\'currentpassword.label\']')">Current password</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</b-alert>
</div>
<div class="col-md-8">
<b-form role="form" v-on:submit.prevent="doLogin()">
<b-form v-on:submit.prevent="doLogin()">
<b-form-group v-bind:label="t$('global.form[\'username.label\']')" label-for="username">
<b-form-input
id="username"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
<div class="row justify-content-center">
<div class="col-md-8">
<form id="register-form" name="registerForm" role="form" v-on:submit.prevent="register()"
<form id="register-form" name="registerForm" v-on:submit.prevent="register()"
v-if="!success" no-validate>
<div class="form-group">
<label class="form-control-label" for="username"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>

<div v-if="!keyMissing">
<form v-if="!success" name="form" role="form" v-on:submit.prevent="finishReset()">
<form v-if="!success" name="form" v-on:submit.prevent="finishReset()">
<div class="form-group">
<label class="form-control-label" for="newPassword"
v-text="t$('global.form[\'newpassword.label\']')">New password</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
password.</p>
</div>

<form v-if="!success" name="form" role="form" v-on:submit.prevent="requestReset()">
<form v-if="!success" name="form" v-on:submit.prevent="requestReset()">
<div class="form-group">
<label class="form-control-label" for="email"
v-text="t$('global.form[\'email.label\']')">Email</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<strong>Email is already in use!</strong> Please choose another one.
</div>

<form name="form" id="settings-form" role="form" v-on:submit.prevent="save()" v-if="settingsAccount" novalidate>
<form name="form" id="settings-form" v-on:submit.prevent="save()" v-if="settingsAccount" novalidate>
<div class="form-group">
<label class="form-control-label" for="firstName" v-text="t$('settings.form.firstname')">First Name</label>
<input type="text" class="form-control" id="firstName" name="firstName"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="row justify-content-center">
<div class="col-8">
<form name="editForm" role="form" novalidate v-on:submit.prevent="save()" v-if="userAccount">
<form name="editForm" novalidate v-on:submit.prevent="save()" v-if="userAccount">
<h2 id="myUserLabel" v-text="t$('userManagement.home.createOrEditLabel')">
Create or edit a User
</h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="row justify-content-center">
<div class="col-8">
<form name="editForm" role="form" novalidate v-on:submit.prevent="save()" >
<form name="editForm" novalidate v-on:submit.prevent="save()" >
<h2 id="<%= i18nKeyPrefix %>.home.createOrEditLabel" data-cy="<%= entityClass %>CreateUpdateHeading" v-text="t$('<%= i18nKeyPrefix %>.home.createOrEditLabel')">Create or edit a <%= entityAngularName %></h2>
<div>
<div class="form-group" v-if="<%= entityInstance %>.<%= primaryKey.name %>">
Expand Down

0 comments on commit 064fc6d

Please sign in to comment.