Revision 59678
Added by Konstantinos Triantafyllou about 4 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/contact-us/contact-us.component.html | ||
---|---|---|
53 | 53 |
[class.uk-form-danger]="contactForm.get('organization').invalid && contactForm.get('organization').touched"> |
54 | 54 |
</div> |
55 | 55 |
<div *ngIf="contactForm.get('organizationType')" class="uk-width-1-2@s uk-margin-top"> |
56 |
<h6 class="uk-text-bold uk-margin-small-bottom">Organization Type<span class="uk-text-danger uk-text-bold">*</span></h6> |
|
56 |
<h6 class="uk-text-bold uk-margin-small-bottom">Organization Type <span class="uk-text-danger uk-text-bold">*</span></h6>
|
|
57 | 57 |
<input type="text" class="uk-input uk-width-1-1" placeholder="Your Organization Type" formControlName="organizationType" |
58 | 58 |
[class.uk-form-danger]="contactForm.get('organizationType').invalid && contactForm.get('organizationType').touched" |
59 | 59 |
[matAutocomplete]="auto"> |
... | ... | |
64 | 64 |
</mat-autocomplete> |
65 | 65 |
</div> |
66 | 66 |
<div *ngIf="contactForm.get('subject')" class="uk-width-1-1@s uk-margin-top"> |
67 |
<h6 class="uk-text-bold uk-margin-small-bottom">Subject<span class="uk-text-danger uk-text-bold">*</span></h6> |
|
67 |
<h6 class="uk-text-bold uk-margin-small-bottom">Subject <span class="uk-text-danger uk-text-bold">*</span></h6>
|
|
68 | 68 |
<input class="uk-input uk-width-1-1" type="text" placeholder="Your subject" formControlName="subject" |
69 | 69 |
[class.uk-form-danger]="contactForm.get('subject').invalid && contactForm.get('subject').touched"> |
70 | 70 |
</div> |
... | ... | |
88 | 88 |
<re-captcha (resolved)="handleRecaptcha($event)" [(siteKey)]="properties.reCaptchaSiteKey"> |
89 | 89 |
</re-captcha> |
90 | 90 |
</div> |
91 |
<div class="uk-width-1-2@s uk-text-right uk-margin-medium-top" [class.uk-hidden]="!right">
|
|
91 |
<div class="uk-margin-medium-top uk-width-1-1">
|
|
92 | 92 |
<button class="uk-button" [class.portal-button]="!buttonClass" [ngClass]="buttonClass" (click)="send()">Send</button> |
93 | 93 |
</div> |
94 |
<div class="uk-margin-medium-top uk-width-1-1" [class.uk-hidden]="right"> |
|
95 |
<button class="uk-button" [class.portal-button]="!buttonClass" [ngClass]="buttonClass" (click)="send()">Send</button> |
|
96 |
</div> |
|
97 | 94 |
</div> |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/contact-us/contact-us.component.ts | ||
---|---|---|
7 | 7 |
@Component({ |
8 | 8 |
selector: 'contact-us', |
9 | 9 |
templateUrl: './contact-us.component.html', |
10 |
styleUrls: ['contact-us.component.css'] |
|
10 | 11 |
}) |
11 | 12 |
|
12 | 13 |
export class ContactUsComponent implements OnInit { |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/contact-us/contact-us.component.css | ||
---|---|---|
1 |
.uk-text-danger { |
|
2 |
color: #b50000!important; |
|
3 |
font-size: 12px; |
|
4 |
} |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/utils/email/composer.ts | ||
---|---|---|
68 | 68 |
public static composeEmailForMonitor(contactForm: any, admins: any): Email { |
69 | 69 |
let email: Email = new Email(); |
70 | 70 |
|
71 |
email.subject = "OpenAIRE Monitor | " + contactForm.subject;
|
|
71 |
email.subject = "OpenAIRE - Monitor";
|
|
72 | 72 |
email.body = "<div style='font-size:" + this.noteBodySize + "'>" |
73 | 73 |
+ "<span><b>Name</b>: " + contactForm.name + "</span><br>" |
74 | 74 |
+ "<span><b>Surname</b>: " + contactForm.surname + "</span><br>" |
... | ... | |
84 | 84 |
public static composeEmailForUsageCounts(contactForm: any, admins: any): Email { |
85 | 85 |
let email: Email = new Email(); |
86 | 86 |
|
87 |
email.subject = "OpenAIRE UsageCounts"; |
|
87 |
email.subject = "OpenAIRE - UsageCounts";
|
|
88 | 88 |
email.body = "<div style='font-size:" + this.noteBodySize + "'>" |
89 | 89 |
+ "<span><b>Name</b>: " + contactForm.name + "</span><br>" |
90 | 90 |
+ "<span><b>Email</b>: " + contactForm.email + "</span><br>" |
Also available in: Unified diff
[Library | Trunk]: Contact us add css file