Skip to content

Commit

Permalink
Remove special char check on contact forms
Browse files Browse the repository at this point in the history
  • Loading branch information
eckermania committed Oct 18, 2023
1 parent a450ac6 commit 71ca122
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@
v-model="editContact.firstName"
class="pt-0"
variant="underlined"
:rules="[rules.noSpecialCharactersContactName()]"
:maxlength="255"
label="First Name"
/>
<v-text-field
id="editAuthorityContactLastNameInput"
v-model="editContact.lastName"
:rules="[rules.required(), rules.noSpecialCharactersContactName()]"
:rules="[rules.required()]"
class="pt-0"
variant="underlined"
:maxlength="255"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@
v-model="editContact.firstName"
class="pt-0"
variant="underlined"
:rules="[rules.noSpecialCharactersContactName()]"
:maxlength="255"
label="First Name"
/>
<v-text-field
id="editDistrictContactLastNameInput"
v-model="editContact.lastName"
:rules="[rules.required(), rules.noSpecialCharactersContactName()]"
:rules="[rules.required()]"
class="pt-0"
variant="underlined"
:maxlength="255"
Expand All @@ -45,7 +44,6 @@
<v-text-field
id="editDistrictContactJobTitle"
v-model="editContact.jobTitle"
:rules="[rules.noSpecialCharactersContactTitle()]"
label="Position Title"
variant="underlined"
type="text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<v-text-field
id="newContactFirstNameInput"
v-model="newContact.firstName"
:rules="[rules.noSpecialCharactersContactName()]"
variant="underlined"
class="pt-0"
:maxlength="255"
Expand All @@ -36,7 +35,7 @@
<v-text-field
id="newContactLastNameInput"
v-model="newContact.lastName"
:rules="[rules.required(), rules.noSpecialCharactersContactName()]"
:rules="[rules.required()]"
variant="underlined"
class="pt-0"
:maxlength="255"
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/components/institute/NewDistrictContactPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<v-text-field
id="newContactFirstNameInput"
v-model="newContact.firstName"
:rules="[rules.required(), rules.noSpecialCharactersContactName()]"
:rules="[rules.required()]"
class="pt-0"
variant="underlined"
:maxlength="255"
Expand All @@ -36,7 +36,7 @@
<v-text-field
id="newContactLastNameInput"
v-model="newContact.lastName"
:rules="[rules.required(), rules.noSpecialCharactersContactName()]"
:rules="[rules.required()]"
class="pt-0"
variant="underlined"
:maxlength="255"
Expand All @@ -45,7 +45,6 @@
<v-text-field
id="newContactJobTitleInput"
v-model="newContact.jobTitle"
:rules="[rules.noSpecialCharactersContactTitle()]"
class="pt-0"
variant="underlined"
:maxlength="255"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@
v-model="editContact.firstName"
class="pt-0"
variant="underlined"
:rules="[rules.noSpecialCharactersContactName()]"
:maxlength="255"
label="First Name"
/>
<v-text-field
id="editSchoolContactLastNameInput"
v-model="editContact.lastName"
:rules="[rules.required(), rules.noSpecialCharactersContactName()]"
:rules="[rules.required()]"
class="pt-0"
variant="underlined"
:maxlength="255"
Expand All @@ -48,7 +47,6 @@
label="Position Title"
type="text"
variant="underlined"
:rules="[rules.noSpecialCharactersContactTitle()]"
maxlength="255"
/>
<v-text-field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@
v-model="newContact.firstName"
variant="underlined"
class="pt-0"
:rules="[rules.noSpecialCharactersContactName()]"
:maxlength="255"
label="First Name"
/>
<v-text-field
id="newContactLastNameInput"
v-model="newContact.lastName"
variant="underlined"
:rules="[rules.required(), rules.noSpecialCharactersContactName()]"
:rules="[rules.required()]"
class="pt-0"
:maxlength="255"
label="Last Name"
Expand All @@ -47,7 +46,6 @@
v-model="newContact.jobTitle"
class="pt-0"
variant="underlined"
:rules="[rules.noSpecialCharactersContactTitle()]"
:maxlength="255"
label="Position Title"
/>
Expand Down

0 comments on commit 71ca122

Please sign in to comment.