2022-01-19 13:30:48 +01:00
|
|
|
<h1 *ngIf="formTitle" class="uk-margin-auto">{{formTitle}}</h1>
|
|
|
|
<ng-content select="[page-title]"></ng-content>
|
2022-02-11 14:35:08 +01:00
|
|
|
<ng-content select="[page-description]"></ng-content>
|
2022-03-01 20:09:14 +01:00
|
|
|
<div class="uk-child-width-1-2@s uk-child-width-1-1 uk-grid uk-grid-margin-large" [attr.uk-scrollspy-class]="scrollspy?'':null"
|
|
|
|
[class.uk-grid-column-small]="smallForm" [formGroup]="contactForm" uk-grid>
|
2022-04-04 16:30:48 +02:00
|
|
|
<div *ngIf="contactForm.get('name')" input placeholder="Name" [formInput]="contactForm.get('name')"></div>
|
2022-04-04 16:23:08 +02:00
|
|
|
<div *ngIf="contactForm.get('surname')" input placeholder="Surname" [formInput]="contactForm.get('surname')"></div>
|
|
|
|
<div *ngIf="contactForm.get('email')" input placeholder="Email" [formInput]="contactForm.get('email')"></div>
|
|
|
|
<div *ngIf="contactForm.get('job')" input placeholder="Job Title" [formInput]="contactForm.get('job')"></div>
|
|
|
|
<div *ngIf="contactForm.get('affiliation')" input placeholder="Affiliation" [formInput]="contactForm.get('affiliation')"></div>
|
|
|
|
<div *ngIf="contactForm.get('community')" input placeholder="Research Community or Infrastructure" [formInput]="contactForm.get('community')"></div>
|
|
|
|
<div *ngIf="contactForm.get('organization')" input placeholder="Organization" [formInput]="contactForm.get('organization')"></div>
|
|
|
|
<div *ngIf="contactForm.get('organizationType')" input type="select" placeholder="Organization Type"
|
|
|
|
[formInput]="contactForm.get('organizationType')" [options]="organizationTypes"></div>
|
|
|
|
<div *ngIf="contactForm.get('subject')" class="uk-width-1-1" input placeholder="Subject" [formInput]="contactForm.get('subject')"></div>
|
|
|
|
<div *ngIf="contactForm.get('message')" class="uk-width-1-1" input type="textarea" rows="4" placeholder="Comments" [formInput]="contactForm.get('message')"></div>
|
|
|
|
<div *ngIf="contactForm.get('description')" class="uk-width-1-1" input type="textarea" rows="4" placeholder="Description" [formInput]="contactForm.get('description')"></div>
|
2022-03-01 20:09:14 +01:00
|
|
|
<div *ngIf="contactForm.get('recaptcha')" class="uk-flex uk-flex-center" [class.uk-width-1-1]="smallForm" [class.uk-flex-last@s]="!smallForm">
|
|
|
|
<re-captcha (resolved)="handleRecaptcha($event)" [(siteKey)]="properties.reCaptchaSiteKey">
|
2022-02-24 17:42:05 +01:00
|
|
|
</re-captcha>
|
|
|
|
</div>
|
2022-03-01 20:09:14 +01:00
|
|
|
<div class="uk-flex uk-flex-center" [class.uk-width-1-1]="smallForm" [class.uk-flex-column]="!smallForm">
|
|
|
|
<div class="uk-flex uk-flex-center" [class.uk-flex-left@s]="!smallForm">
|
|
|
|
<button class="uk-button uk-text-uppercase uk-flex uk-flex-middle"
|
|
|
|
[class.uk-disabled]="contactForm.invalid || sending"
|
|
|
|
[class.uk-button-primary]="!buttonClass && contactForm.valid"
|
|
|
|
[ngClass]="(contactForm.valid?buttonClass:'')"
|
|
|
|
(click)="send()">
|
2022-02-24 17:42:05 +01:00
|
|
|
{{sendButton}}
|
2022-03-01 20:09:14 +01:00
|
|
|
<span *ngIf="sending" class="uk-icon uk-margin-small-left"><loading [top_margin]="false" [size]="'small'"
|
|
|
|
[color]="null"></loading></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-03 13:50:39 +01:00
|
|
|
</div>
|