Revision 55570
Added by Argiro Kokogiannaki almost 5 years ago
composer.ts | ||
---|---|---|
1 | 1 |
import {Email} from "./email"; |
2 | 2 |
import {Body} from "./body"; |
3 |
import {ContactForm} from "./contact-form"; |
|
3 | 4 |
|
4 | 5 |
export class Composer { |
5 | 6 |
private static noteBodySize = "14px"; |
... | ... | |
48 | 49 |
return email; |
49 | 50 |
} |
50 | 51 |
|
52 |
public static composeEmailForNewCommunity(contactForm: ContactForm, admins: any): Email { |
|
53 |
let email: Email = new Email(); |
|
54 |
|
|
55 |
email.subject = "RCD: Request for new community"; |
|
56 |
email.body = "<div style='font-size:" + this.noteBodySize + "'>" |
|
57 |
+ "<span><b>Name</b>: " + contactForm.name + "</span><br>" |
|
58 |
+ "<span><b>Surname</b>: " + contactForm.surname + "</span><br>" |
|
59 |
+ "<span><b>Email</b>: " + contactForm.email + "</span><br>" |
|
60 |
+ "<span><b>Affiliation</b>: " + contactForm.affiliation + "</span><br>" |
|
61 |
+ "<span><b>Community Name</b>: " + contactForm.community + "</span>" |
|
62 |
+ "<p>" + contactForm.message + "</p>" |
|
63 |
+ "</div>"; |
|
64 |
email.recipients = admins; |
|
65 |
return email; |
|
66 |
} |
|
67 |
|
|
51 | 68 |
public static composeEmailToInformOldManagersForTheNewOnes(communityName: string, communityId: string, firstVersionOfManagers: any, managers: any) : Email { |
52 | 69 |
let email: Email = new Email(); |
53 | 70 |
|
Also available in: Unified diff
[Library|newlinking]
Merging trunk|library into branch newlinking 55132:55568