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-05-04 16:17:49 +02:00
|
|
|
<div *ngIf="contactForm.get('name')" input placeholder="Name"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('name')"></div>
|
|
|
|
<div *ngIf="contactForm.get('surname')" input placeholder="Surname"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('surname')"></div>
|
|
|
|
<div *ngIf="contactForm.get('email')" input placeholder="Email"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('email')"></div>
|
|
|
|
<div *ngIf="contactForm.get('job')" input placeholder="Job Title"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('job')"></div>
|
|
|
|
<div *ngIf="contactForm.get('affiliation')" input placeholder="Affiliation"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('affiliation')"></div>
|
|
|
|
<div *ngIf="contactForm.get('community')" input placeholder="Research Community or Infrastructure"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('community')"></div>
|
|
|
|
<div *ngIf="contactForm.get('organization')" input placeholder="Organization"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('organization')"></div>
|
2022-04-04 16:23:08 +02:00
|
|
|
<div *ngIf="contactForm.get('organizationType')" input type="select" placeholder="Organization Type"
|
2022-05-04 16:17:49 +02:00
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('organizationType')" [options]="organizationTypes"></div>
|
|
|
|
<div *ngIf="contactForm.get('subject')" class="uk-width-1-1" input placeholder="Subject"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('subject')"></div>
|
|
|
|
<div *ngIf="contactForm.get('message')" class="uk-width-1-1" input type="textarea" rows="4" placeholder="Comments"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [formInput]="contactForm.get('message')"></div>
|
|
|
|
<div *ngIf="contactForm.get('description')" class="uk-width-1-1" input type="textarea" rows="4" placeholder="Description"
|
|
|
|
[inputClass]="'inner' + (smallForm?' x-small':'')" [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">
|
2022-05-04 16:17:49 +02:00
|
|
|
<re-captcha (resolved)="handleRecaptcha($event)" [siteKey]="properties.reCaptchaSiteKey"></re-captcha>
|
2022-02-24 17:42:05 +01:00
|
|
|
</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>
|