Revision 53703
Added by Sofia Baltzi almost 6 years ago
modules/uoa-connect-portal/trunk/src/app/utils/subscribe/invite/invite.component.html | ||
---|---|---|
59 | 59 |
<td for="email.body" class="uk-text-bold uk-text-right">Message:</td> |
60 | 60 |
<td class="uk-text-left"> |
61 | 61 |
<ckeditor |
62 |
class="form-control" [(ngModel)] = "body.paragraphs" id="message" |
|
62 | 63 |
debounce="400" |
63 | 64 |
[config]="{ extraAllowedContent: '* [uk-*](*) ; span', disallowedContent: 'script; *[on*]', removeButtons: 'Save,NewPage,DocProps,Preview,Print', |
64 | 65 |
extraPlugins: 'divarea'}"> |
... | ... | |
81 | 82 |
{{body.signature}} |
82 | 83 |
</td> |
83 | 84 |
</tr> |
84 |
<!-- <tr> |
|
85 |
<td for="email.subject" class="uk-text-bold uk-text-right">Subject :</td> |
|
86 |
<td class="uk-text-left"> |
|
87 |
<textarea type="text" |
|
88 |
class="form-control uk-input uk-width-large@l uk-width-medium@s" [(ngModel)] = "email.subject" id="subject"> |
|
89 |
</textarea> |
|
90 |
</td> |
|
91 |
</tr> --> |
|
92 | 85 |
</tbody> |
93 | 86 |
</table> |
94 | 87 |
</div> |
... | ... | |
138 | 131 |
</div> |
139 | 132 |
</div> |
140 | 133 |
</div> |
141 |
<!-- <div *ngIf="longView =='false'">
|
|
134 |
<div *ngIf="longView =='false'"> |
|
142 | 135 |
<div class="uk-width-large@m uk-width-1-1@s"> |
143 | 136 |
<div class="uk-card uk-card-default uk-card-body"> |
144 | 137 |
<div class="uk-text-center uk-text-large"> |
... | ... | |
163 | 156 |
</div> |
164 | 157 |
</div> |
165 | 158 |
</div> |
166 |
</div> --> |
|
159 |
</div> |
modules/uoa-connect-portal/trunk/src/app/utils/subscribe/invite/invite.component.ts | ||
---|---|---|
24 | 24 |
|
25 | 25 |
private ckeditorContent: string; |
26 | 26 |
|
27 |
public defaultBody = '<div>Dear Sir/Madame,<br> <p><span>OpenAIRE invites you to subscribe in <a href=\"https://beta.egi.openaire.eu\">_Community_name_</a> dashboard. </p><p>The community dashboard is part of the <a href="https://beta.egi.openaire.eu\">OpenAIRE-Connect</a> project</p><p>Kind regards,<br>OpenAIRE team</p></div>' |
|
28 |
public defaultBody2 = 'OpenAIRE invites you to subscribe in Community_name dashboard. </p><p>The community dashboard is part of the OpenAIRE-Connect</a> project</p>' |
|
27 |
public defaultBody = '<p>OpenAIRE invites you to subscribe in <a href="https://beta.egi.openaire.eu">_Community_name_</a> dashboard. </p><p>The community dashboard is part of the <a href="https://beta.egi.openaire.eu">OpenAIRE-Connect</a> project.</p>'; |
|
29 | 28 |
|
30 | 29 |
@Input() communityId = null; |
31 | 30 |
|
... | ... | |
39 | 38 |
public ngOnInit() { |
40 | 39 |
this.route.data.subscribe((data: { envSpecific: EnvProperties }) => { |
41 | 40 |
this.properties = data.envSpecific; |
42 |
this.body = {salutation: "Dear Sir/Madame,", fromMessage: "On behalf of ", fromName: "", paragraphs: "", closing: "Kind regards,", signature: "OpenAIRE team"};
|
|
41 |
this.body = {salutation: "Dear Sir/Madame,", fromMessage: "On behalf of ", fromName: "", paragraphs: this.defaultBody, closing: "Kind regards,", signature: "OpenAIRE team"};
|
|
43 | 42 |
this.email = {body: "", subject: "", recipients: []}; |
44 | 43 |
|
45 | 44 |
}); |
... | ... | |
70 | 69 |
fromMessageAndName = "<span>" + this.body.fromMessage + this.body.fromName + "</span>"; |
71 | 70 |
} |
72 | 71 |
|
73 |
let formattedEmail = "<div>" + this.body.salutation + "<br>" + |
|
74 |
"<p>" + fromMessageAndName + "..." + "</p>" +
|
|
72 |
let formattedEmail = "<div>" + this.body.salutation + "<br><br>" +
|
|
73 |
fromMessageAndName + this.body.paragraphs +
|
|
75 | 74 |
"<p>" + this.body.closing + "<br>" + this.body.signature + "</p></div>"; |
76 | 75 |
|
77 | 76 |
return formattedEmail; |
Also available in: Unified diff
Add ckeditor default paragraph