From f2251087f8b4e385501f6583d3875c6860ae6780 Mon Sep 17 00:00:00 2001 From: George Nash Date: Tue, 30 Apr 2024 19:55:44 +0100 Subject: [PATCH] fixed template issues --- .../add-consortium-member.component.html | 192 +++++++++--------- .../contact/contact-update.component.html | 50 ++--- 2 files changed, 121 insertions(+), 121 deletions(-) diff --git a/ui/src/app/home/consortium/add-consortium-member.component.html b/ui/src/app/home/consortium/add-consortium-member.component.html index 09c1972ef..9abec8d7c 100644 --- a/ui/src/app/home/consortium/add-consortium-member.component.html +++ b/ui/src/app/home/consortium/add-consortium-member.component.html @@ -3,8 +3,8 @@ Back to {{ memberData.publicDisplayName }}
-
Add new consortium member
-

New organization

+
Add new consortium member
+

New organization

@@ -28,7 +28,7 @@

Name & email domain

@@ -37,10 +37,10 @@

Name & email domain

class="form-control wide-text-25 org-name-input-field" name="orgName" formControlName="orgName" - (input)="editForm.get('orgName').markAsUntouched()" + (input)="editForm.get('orgName')?.markAsUntouched()" [ngClass]="{ - 'text-danger': editForm.get('orgName').invalid && editForm.get('orgName').touched && editForm.get('orgName').dirty, - 'input-field-default-border': !editForm.get('orgName').dirty || !editForm.get('orgName').touched + 'text-danger': editForm.get('orgName')?.invalid && editForm.get('orgName')?.touched && editForm.get('orgName')?.dirty, + 'input-field-default-border': !editForm.get('orgName')?.dirty || !editForm.get('orgName')?.touched }" /> @@ -49,13 +49,13 @@

Name & email domain

>
- + Organization name cannot be empty
- + Organization name is too long. Please use 41 characters or less.
@@ -63,7 +63,7 @@

Name & email domain

@@ -72,10 +72,10 @@

Name & email domain

class="form-control wide-text-25" name="emailDomain" formControlName="emailDomain" - (input)="editForm.get('emailDomain').markAsUntouched()" + (input)="editForm.get('emailDomain')?.markAsUntouched()" [ngClass]="{ - 'text-danger': editForm.get('emailDomain').invalid && editForm.get('emailDomain').touched, - 'input-field-default-border': !editForm.get('emailDomain').touched + 'text-danger': editForm.get('emailDomain')?.invalid && editForm.get('emailDomain')?.touched, + 'input-field-default-border': !editForm.get('emailDomain')?.touched }" /> @@ -83,8 +83,8 @@

Name & email domain

>The email domain is the remaining address after the @ symbol eg: orcid.org or website.com
-
- +
+ Email domain is too long. Please use 255 characters or less.
@@ -96,7 +96,7 @@

Billing address

Billing address class="form-control wide-text-25" name="street" formControlName="street" - (input)="editForm.get('street').markAsUntouched()" + (input)="editForm.get('street')?.markAsUntouched()" [ngClass]="{ - 'text-danger': editForm.get('street').invalid && editForm.get('street').touched, - 'input-field-default-border': !editForm.get('street').dirty || !editForm.get('street').touched + 'text-danger': editForm.get('street')?.invalid && editForm.get('street')?.touched, + 'input-field-default-border': !editForm.get('street')?.dirty || !editForm.get('street')?.touched }" /> -
- +
+ Street name is too long. Please use 255 characters or less.
- Billing address class="form-control wide-text-25" name="city" formControlName="city" - (input)="editForm.get('city').markAsUntouched()" + (input)="editForm.get('city')?.markAsUntouched()" [ngClass]="{ - 'text-danger': editForm.get('city').invalid && editForm.get('city').touched, - 'input-field-default-border': !editForm.get('city').dirty || !editForm.get('city').touched + 'text-danger': editForm.get('city')?.invalid && editForm.get('city')?.touched, + 'input-field-default-border': !editForm.get('city')?.dirty || !editForm.get('city')?.touched }" /> -
- +
+ City name is too long. Please use 40 characters or less.
@@ -141,7 +141,7 @@

Billing address

@@ -150,8 +150,8 @@

Billing address

name="state" formControlName="state" [ngClass]="{ - 'text-danger': editForm.get('state').invalid && editForm.get('state').dirty, - 'input-field-default-border': !editForm.get('state').dirty + 'text-danger': editForm.get('state')?.invalid && editForm.get('state')?.dirty, + 'input-field-default-border': !editForm.get('state')?.dirty }" > @@ -163,17 +163,17 @@

Billing address

-
- +
+ Please select a country
@@ -190,7 +190,7 @@

Billing address

Billing address class="form-control wide-text-25 postcode-input-field" name="postcode" formControlName="postcode" - (input)="editForm.get('postcode').markAsUntouched()" + (input)="editForm.get('postcode')?.markAsUntouched()" [ngClass]="{ - 'text-danger': editForm.get('postcode').invalid && editForm.get('postcode').touched, - 'input-field-default-border': !editForm.get('postcode').dirty || !editForm.get('postcode').touched + 'text-danger': editForm.get('postcode')?.invalid && editForm.get('postcode')?.touched, + 'input-field-default-border': !editForm.get('postcode')?.dirty || !editForm.get('postcode')?.touched }" /> -
- +
+ ZIP/Postcode is too long. Please use 20 characters or less.
@@ -228,7 +228,7 @@

name="trademarkLicense" value="Yes" formControlName="trademarkLicense" - [ngClass]="{ 'outline-danger': editForm.get('trademarkLicense').invalid && editForm.get('trademarkLicense').dirty }" + [ngClass]="{ 'outline-danger': editForm.get('trademarkLicense')?.invalid && editForm.get('trademarkLicense')?.dirty }" /> name="trademarkLicense" value="No" formControlName="trademarkLicense" - [ngClass]="{ 'outline-danger': editForm.get('trademarkLicense').invalid && editForm.get('trademarkLicense').dirty }" + [ngClass]="{ 'outline-danger': editForm.get('trademarkLicense')?.invalid && editForm.get('trademarkLicense')?.dirty }" />

-
- +
+ Please select a trademark license option
@@ -268,8 +268,8 @@

Membership start date @@ -280,8 +280,8 @@

Membership start date @@ -291,9 +291,9 @@

Membership start date Please select the membership start date @@ -301,9 +301,9 @@

Membership start date Please select the membership start month @@ -311,9 +311,9 @@

Membership start date Please select the membership start year @@ -332,8 +332,8 @@

Main contact

class="wide-text font-size-12 font-weight-bold" [ngClass]="{ 'text-danger': - editForm.get('contactGivenName').invalid && - (editForm.get('contactGivenName').dirty && editForm.get('contactGivenName').touched) + editForm.get('contactGivenName')?.invalid && + (editForm.get('contactGivenName')?.dirty && editForm.get('contactGivenName')?.touched) }" >First or given name (Required) @@ -342,24 +342,24 @@

Main contact

class="form-control wide-text-25" name="contactGivenName" formControlName="contactGivenName" - (input)="editForm.get('contactGivenName').markAsUntouched()" + (input)="editForm.get('contactGivenName')?.markAsUntouched()" [ngClass]="{ 'text-danger': - editForm.get('contactGivenName').invalid && - editForm.get('contactGivenName').dirty && - editForm.get('contactGivenName').touched, - 'input-field-default-border': !editForm.get('contactGivenName').dirty || !editForm.get('contactGivenName').touched + editForm.get('contactGivenName')?.invalid && + editForm.get('contactGivenName')?.dirty && + editForm.get('contactGivenName')?.touched, + 'input-field-default-border': !editForm.get('contactGivenName')?.dirty || !editForm.get('contactGivenName')?.touched }" />
- + First or given name is too long. Please use 40 characters or less. - + Please provide a first or given name
@@ -369,9 +369,9 @@

Main contact

class="wide-text font-size-12 font-weight-bold" [ngClass]="{ 'text-danger': - editForm.get('contactFamilyName').invalid && - editForm.get('contactFamilyName').dirty && - editForm.get('contactFamilyName').touched + editForm.get('contactFamilyName')?.invalid && + editForm.get('contactFamilyName')?.dirty && + editForm.get('contactFamilyName')?.touched }" >Last or family name (Required) @@ -380,26 +380,26 @@

Main contact

class="form-control wide-text-25" name="contactFamilyName" formControlName="contactFamilyName" - (input)="editForm.get('contactFamilyName').markAsUntouched()" + (input)="editForm.get('contactFamilyName')?.markAsUntouched()" [ngClass]="{ 'text-danger': - editForm.get('contactFamilyName').invalid && - editForm.get('contactFamilyName').dirty && - editForm.get('contactFamilyName').touched, - 'input-field-default-border': !editForm.get('contactFamilyName').dirty || !editForm.get('contactFamilyName').touched + editForm.get('contactFamilyName')?.invalid && + editForm.get('contactFamilyName')?.dirty && + editForm.get('contactFamilyName')?.touched, + 'input-field-default-border': !editForm.get('contactFamilyName')?.dirty || !editForm.get('contactFamilyName')?.touched }" />
- + Last or family name is too long. Please use 80 characters or less. - + Please provide a last or family name
@@ -407,7 +407,7 @@

Main contact

Main contact

class="form-control wide-text-25" name="contactJobTitle" formControlName="contactJobTitle" - (input)="editForm.get('contactJobTitle').markAsUntouched()" + (input)="editForm.get('contactJobTitle')?.markAsUntouched()" [ngClass]="{ - 'text-danger': editForm.get('contactJobTitle').invalid && editForm.get('contactJobTitle').touched, - 'input-field-default-border': !editForm.get('contactJobTitle').dirty || !editForm.get('contactJobTitle').touched + 'text-danger': editForm.get('contactJobTitle')?.invalid && editForm.get('contactJobTitle')?.touched, + 'input-field-default-border': !editForm.get('contactJobTitle')?.dirty || !editForm.get('contactJobTitle')?.touched }" /> -
- +
+ Job title is too long. Please use 128 characters or less.
@@ -431,7 +431,7 @@

Main contact

Main contact

class="form-control wide-text-25" name="contactEmail" formControlName="contactEmail" - (input)="editForm.get('contactEmail').markAsUntouched()" + (input)="editForm.get('contactEmail')?.markAsUntouched()" [ngClass]="{ 'text-danger': - editForm.get('contactEmail').invalid && editForm.get('contactEmail').dirty && editForm.get('contactEmail').touched, - 'input-field-default-border': !editForm.get('contactEmail').touched || !editForm.get('contactEmail').dirty + editForm.get('contactEmail')?.invalid && editForm.get('contactEmail')?.dirty && editForm.get('contactEmail')?.touched, + 'input-field-default-border': !editForm.get('contactEmail')?.touched || !editForm.get('contactEmail')?.dirty }" /> @@ -453,20 +453,20 @@

Main contact

Please enter a valid email address, for example contactus@website.com - + Email is too long. Please use 80 characters or less. - + Please provide an email address
diff --git a/ui/src/app/home/contact/contact-update.component.html b/ui/src/app/home/contact/contact-update.component.html index a5ccb9e32..b30c76fc6 100644 --- a/ui/src/app/home/contact/contact-update.component.html +++ b/ui/src/app/home/contact/contact-update.component.html @@ -25,7 +25,7 @@

Contact details

Contact details

class="form-control" name="name" formControlName="name" - (input)="editForm.get('name').markAsUntouched()" + (input)="editForm.get('name')?.markAsUntouched()" [ngClass]="{ - 'text-danger': editForm.get('name').invalid && editForm.get('name').dirty && editForm.get('name').touched, - 'input-field-default-border': !editForm.get('name').dirty || !editForm.get('name').touched + 'text-danger': editForm.get('name')?.invalid && editForm.get('name')?.dirty && editForm.get('name')?.touched, + 'input-field-default-border': !editForm.get('name')?.dirty || !editForm.get('name')?.touched }" /> -
- +
+ Name cannot be empty
- + Name is too long. Please use 80 characters or less.
- + -
- +
+ Job title is too long. Please use 128 characters or less.
@@ -76,32 +76,32 @@

Contact details

class="form-control" name="email" formControlName="email" - (input)="editForm.get('email').markAsUntouched()" + (input)="editForm.get('email')?.markAsUntouched()" [ngClass]="{ - 'text-danger': editForm.get('email').invalid && editForm.get('email').dirty && editForm.get('email').touched, - 'input-field-default-border': !editForm.get('email').dirty || !editForm.get('email').touched + 'text-danger': editForm.get('email')?.invalid && editForm.get('email')?.dirty && editForm.get('email')?.touched, + 'input-field-default-border': !editForm.get('email')?.dirty || !editForm.get('email')?.touched }" /> The contact email for this person -
+
Please enter a valid email address, for example contactus@website.com - + Email is too long. Please use 80 characters or less. - + Email cannot be empty
- Contact details

class="form-control" name="phone" formControlName="phone" - [ngClass]="{ 'text-danger': editForm.get('phone').invalid && editForm.get('phone').dirty }" + [ngClass]="{ 'text-danger': editForm.get('phone')?.invalid && editForm.get('phone')?.dirty }" /> A direct contact phone for this person - - + + Phone number is too long. Please use 40 characters or less. @@ -123,14 +123,14 @@

Contact details

Roles (Required)

Please assign at least one role to this contact
- +