[Library | Trunk]: Add subject to contact is form.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58891 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-06-11 17:03:03 +00:00
parent 4ac1861a39
commit 99421068ab
2 changed files with 26 additions and 3 deletions

View File

@ -44,9 +44,16 @@
<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"
<input class="uk-input uk-width-1-1" type="text" placeholder="Your funder name" formControlName="stakeholder"
[class.uk-form-danger]="contactForm.get('stakeholder').invalid && contactForm.get('stakeholder').touched">
</div>
<div *ngIf="contactForm.get('subject')" class="uk-width-1-1@s uk-margin-top">
<div class="uk-width-1-1">
<h5 class="uk-text-bold uk-margin-remove-bottom">Subject<span class="uk-text-danger uk-text-bold">*</span></h5>
</div>
<input class="uk-input uk-width-1-1" type="text" placeholder="Your subject" formControlName="subject"
[class.uk-form-danger]="contactForm.get('subject').invalid && contactForm.get('subject').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>

View File

@ -51,8 +51,8 @@ export class Composer {
public static composeEmailForNewCommunity(contactForm: any, admins: any): Email {
let email: Email = new Email();
email.subject = "RCD: Request for new community";
email.subject = "OpenAIRE Connect | " + contactForm.subject;
email.body = "<div style='font-size:" + this.noteBodySize + "'>"
+ "<span><b>Name</b>: " + contactForm.name + "</span><br>"
+ "<span><b>Surname</b>: " + contactForm.surname + "</span><br>"
@ -65,6 +65,22 @@ export class Composer {
return email;
}
public static composeEmailForNewStakeholder(contactForm: any, admins: any): Email {
let email: Email = new Email();
email.subject = "OpenAIRE Monitor | " + contactForm.subject;
email.body = "<div style='font-size:" + this.noteBodySize + "'>"
+ "<span><b>Name</b>: " + contactForm.name + "</span><br>"
+ "<span><b>Surname</b>: " + contactForm.surname + "</span><br>"
+ "<span><b>Email</b>: " + contactForm.email + "</span><br>"
+ "<span><b>Affiliation</b>: " + contactForm.affiliation + "</span><br>"
+ "<span><b>Stakeholder Name</b>: " + contactForm.stakeholder + "</span>"
+ "<p>" + contactForm.message + "</p>"
+ "</div>";
email.recipients = admins;
return email;
}
public static composeEmailForFeedback(info: {name: string, url: string, email: string, issues: any[]}, recipients: string[]): Email {
let email: Email = new Email();
email.subject = 'Feedback report for ' + info.name;