[Monitor | Trunk]: Send email to contact us
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor@58890 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
14bb58abc5
commit
d9b146ebfe
|
@ -21,10 +21,10 @@
|
|||
<!--<div class="uk-width-1-1 uk-hidden@m">
|
||||
<ng-container *ngTemplateOutlet="info"></ng-container>
|
||||
</div>-->
|
||||
<contact-us formTitle="Contact us to create your Monitor Dashboard" class="uk-width-1-1 uk-hidden@m"
|
||||
<contact-us formTitle="Contact us to learn more" class="uk-width-1-1 uk-hidden@m"
|
||||
[properties]="properties" [errorMessage]="errorMessage"
|
||||
[contactForm]="contactForm" (sendEmitter)="send($event)"></contact-us>
|
||||
<contact-us formTitle="Contact us to create your Monitor Dashboard" class="uk-width-1-2 uk-visible@m uk-text-nowrap"
|
||||
<contact-us formTitle="Contact us to learn more" class="uk-width-1-2 uk-visible@m"
|
||||
[properties]="properties" [errorMessage]="errorMessage"
|
||||
[contactForm]="contactForm" (sendEmitter)="send($event)"></contact-us>
|
||||
<!--<div class="uk-width-1-2 uk-visible@m">
|
||||
|
|
|
@ -92,6 +92,7 @@ export class ContactComponent implements OnInit {
|
|||
email: this.fb.control('', [Validators.required, Validators.email]),
|
||||
affiliation: this.fb.control('', Validators.required),
|
||||
stakeholder: this.fb.control('', Validators.required),
|
||||
subject: this.fb.control('', Validators.required),
|
||||
message: this.fb.control('', Validators.required),
|
||||
recaptcha: this.fb.control('', Validators.required),
|
||||
});
|
||||
|
@ -99,9 +100,9 @@ export class ContactComponent implements OnInit {
|
|||
}
|
||||
|
||||
private sendMail(admins: any) {
|
||||
/*this.showLoading = true;
|
||||
this._emailService.contact(this.properties.adminToolsAPIURL + '/contact',
|
||||
Composer.composeEmailForNewCommunity(this.contactForm.value, admins),
|
||||
this.showLoading = true;
|
||||
this._emailService.contact(this.properties,
|
||||
Composer.composeEmailForNewStakeholder(this.contactForm.value, admins),
|
||||
this.contactForm.value.recaptcha).subscribe(
|
||||
res => {
|
||||
if (res) {
|
||||
|
@ -115,7 +116,7 @@ export class ContactComponent implements OnInit {
|
|||
this.showLoading = false;
|
||||
this.contactForm.get('recaptcha').setValue('');
|
||||
}
|
||||
);*/
|
||||
);
|
||||
}
|
||||
|
||||
public modalOpen() {
|
||||
|
|
Loading…
Reference in New Issue