66 lines
4.0 KiB
HTML
66 lines
4.0 KiB
HTML
<h2 class="uk-margin-auto uk-text-bold">{{formTitle}}</h2>
|
|
<div *ngIf="errorMessage" class="uk-width-1-1 uk-alert uk-alert-danger uk-text-center"
|
|
role="alert">{{errorMessage}}</div>
|
|
<div class="uk-margin-top" uk-grid [formGroup]="contactForm">
|
|
<div class="uk-margin-small uk-width-1-1 uk-text-danger uk-text-bold uk-margin-remove-bottom">
|
|
*Required fields
|
|
</div>
|
|
<div *ngIf="contactForm.get('name')" class="uk-width-1-2@s uk-margin-small-top">
|
|
<h5 class="uk-text-bold uk-margin-remove-bottom">
|
|
Name <span class="uk-text-danger uk-text-bold">*</span>
|
|
</h5>
|
|
<input class="uk-input" type="text" placeholder="Your name" formControlName="name"
|
|
[class.uk-form-danger]="contactForm.get('name').invalid && contactForm.get('name').touched">
|
|
</div>
|
|
<div *ngIf="contactForm.get('surname')" class="uk-width-1-2@s uk-margin-small-top">
|
|
<h5 class="uk-text-bold uk-margin-remove-bottom">
|
|
Surname <span class="uk-text-danger uk-text-bold">*</span>
|
|
</h5>
|
|
<input class="uk-input" type="text" placeholder="Your surname" formControlName="surname"
|
|
[class.uk-form-danger]="contactForm.get('surname').invalid && contactForm.get('surname').touched">
|
|
</div>
|
|
<div *ngIf="contactForm.get('email')" class="uk-width-1-2@s uk-margin-small-top">
|
|
<h5 class="uk-text-bold uk-margin-remove-bottom">
|
|
Email <span class="uk-text-danger uk-text-bold">*</span>
|
|
</h5>
|
|
<input class="uk-input" type="text" placeholder="Your email" formControlName="email"
|
|
[class.uk-form-danger]="contactForm.get('email').invalid && contactForm.get('email').touched">
|
|
</div>
|
|
<div *ngIf="contactForm.get('affiliation')" class="uk-width-1-2@s uk-margin-small-top">
|
|
<h5 class="uk-text-bold uk-margin-remove-bottom">
|
|
Affiliation <span class="uk-text-danger uk-text-bold">*</span>
|
|
</h5>
|
|
<input class="uk-input" type="text" placeholder="Your affiliation" formControlName="affiliation"
|
|
[class.uk-form-danger]="contactForm.get('affiliation').invalid && contactForm.get('affiliation').touched">
|
|
</div>
|
|
<div *ngIf="contactForm.get('community')" class="uk-width-1-2@s uk-margin-top">
|
|
<div class="uk-width-1-1">
|
|
<h5 class="uk-text-bold uk-margin-remove-bottom uk-text-nowrap">Research Community or Infrastructure <span class="uk-text-danger uk-text-bold">*</span></h5>
|
|
</div>
|
|
<input class="uk-input uk-width-1" type="text" placeholder="Your community name" formControlName="community"
|
|
[class.uk-form-danger]="contactForm.get('community').invalid && contactForm.get('community').touched">
|
|
</div>
|
|
<div *ngIf="contactForm.get('stakeholder')" class="uk-width-1-2@s uk-margin-top">
|
|
<div class="uk-width-1-1">
|
|
<h5 class="uk-text-bold uk-margin-remove-bottom">Stakeholder Name<span class="uk-text-danger uk-text-bold">*</span></h5>
|
|
</div>
|
|
<input class="uk-input uk-width-1-1" type="text" placeholder="Your funder name" formControlName="funder"
|
|
[class.uk-form-danger]="contactForm.get('stakeholder').invalid && contactForm.get('stakeholder').touched">
|
|
</div>
|
|
<div *ngIf="contactForm.get('message')" class="uk-width-1-1 uk-margin-top">
|
|
<h5 class="uk-text-bold uk-margin-remove-bottom">
|
|
Message <span class="uk-text-danger uk-text-bold">*</span>
|
|
</h5>
|
|
<textarea rows="4" class="uk-textarea" placeholder="Your message" formControlName="message"
|
|
[class.uk-form-danger]="contactForm.get('message').invalid && contactForm.get('message').touched">
|
|
</textarea>
|
|
</div>
|
|
<div *ngIf="contactForm.get('message')" class="uk-width-1-2@s uk-margin-top">
|
|
<re-captcha (resolved)="handleRecaptcha($event)" [(siteKey)]="properties.reCaptchaSiteKey">
|
|
</re-captcha>
|
|
</div>
|
|
<div class="uk-width-1-2@s uk-text-right uk-margin-medium-top">
|
|
<button class="uk-button portal-button" (click)="send()">Send</button>
|
|
</div>
|
|
</div>
|