1
|
|
2
|
<div *ngIf="!hidden" class="">
|
3
|
<div *ngIf="showSaveResetButtons" class="uk-article-title custom-article-title">
|
4
|
User Email Preferences for Claims Notifications
|
5
|
</div>
|
6
|
|
7
|
<div *ngIf="userValidMessage.length > 0" class = "uk-alert uk-alert-danger uk-animation-fade" role="alert">
|
8
|
{{userValidMessage}}
|
9
|
</div>
|
10
|
<div *ngIf="savedMessage.length > 0" class="uk-alert uk-alert-success uk-animation-fade" role="alert">
|
11
|
{{savedMessage}}
|
12
|
</div>
|
13
|
<errorMessages [status]="[status]" [type]="'notification preferences'"></errorMessages>
|
14
|
|
15
|
|
16
|
<div *ngFor="let notification of notifications; let i=index" >
|
17
|
<!-- <div class="uk-accordion-title">Email preferences for {{preferencesFor}}: <strong>{{notification.openaireName}}</strong></div>-->
|
18
|
<!-- <div class="uk-accordion-content">-->
|
19
|
<form class="uk-form-horizontal"><!-- [formGroup]="myForm"-->
|
20
|
<!--[ngClass]="{'has-error':!myForm.controls.notify.valid && myForm.controls.notify.dirty}"-->
|
21
|
<div class="uk-margin uk-grid">
|
22
|
<div class=" inherit-color uk-width-medium"
|
23
|
title="Get e-mail notification when there are new user links related your community">Notify
|
24
|
for new user links:</div>
|
25
|
|
26
|
<mat-slide-toggle [checked]="notification.notify"
|
27
|
(change)="($event.source.checked = notification.notify);changeNotify(notification, !notification.notify, i)"></mat-slide-toggle>
|
28
|
</div>
|
29
|
|
30
|
<div *ngIf="notification.notify" [class]="notification.notify ? 'uk-margin' :
|
31
|
'uk-margin cursor-not-allowed'">
|
32
|
<div class="uk-form-label inherit-color">Frequency:</div>
|
33
|
<div class="uk-form-controls">
|
34
|
<select [class]="notification.notify ? 'uk-select' : 'uk-select uk-disabled'" id="form-horizontal-select"
|
35
|
[(ngModel)]="notification.frequency" (ngModelChange)="changeFrequency(i)" name="select_frequency">
|
36
|
<option [ngValue]="24" >Daily</option>
|
37
|
<option [ngValue]="48" >Every two days</option>
|
38
|
<option [ngValue]="168">Weekly</option>
|
39
|
</select>
|
40
|
</div>
|
41
|
</div>
|
42
|
|
43
|
<div *ngIf="showSaveResetButtons" class="uk-float-right">
|
44
|
<button type="submit" class="uk-button uk-button-primary" (click)="saveNotification(i)">Save Changes</button>
|
45
|
<button type="submit" class="uk-button" (click)="restoreNotification(i)">Reset</button>
|
46
|
</div>
|
47
|
|
48
|
</form>
|
49
|
|
50
|
</div>
|
51
|
<!-- </div>-->
|
52
|
<!-- </ul>-->
|
53
|
|
54
|
</div>
|
55
|
|