2021-02-10 11:24:52 +01:00
|
|
|
|
|
|
|
<div *ngIf="!hidden" class="">
|
|
|
|
<div *ngIf="showSaveResetButtons" class="uk-article-title custom-article-title">
|
2018-10-15 11:51:01 +02:00
|
|
|
User Email Preferences for Claims Notifications
|
2018-09-24 12:08:33 +02:00
|
|
|
</div>
|
|
|
|
|
2018-11-01 18:21:10 +01:00
|
|
|
<div *ngIf="userValidMessage.length > 0" class = "uk-alert uk-alert-danger uk-animation-fade" role="alert">
|
|
|
|
{{userValidMessage}}
|
|
|
|
</div>
|
|
|
|
<div *ngIf="savedMessage.length > 0" class="uk-alert uk-alert-success uk-animation-fade" role="alert">
|
|
|
|
{{savedMessage}}
|
2018-09-24 12:08:33 +02:00
|
|
|
</div>
|
|
|
|
<errorMessages [status]="[status]" [type]="'notification preferences'"></errorMessages>
|
|
|
|
|
2021-02-10 11:24:52 +01:00
|
|
|
|
|
|
|
<div *ngFor="let notification of notifications; let i=index" >
|
|
|
|
<!-- <div class="uk-accordion-title">Email preferences for {{preferencesFor}}: <strong>{{notification.openaireName}}</strong></div>-->
|
|
|
|
<!-- <div class="uk-accordion-content">-->
|
2018-09-24 12:08:33 +02:00
|
|
|
<form class="uk-form-horizontal"><!-- [formGroup]="myForm"-->
|
|
|
|
<!--[ngClass]="{'has-error':!myForm.controls.notify.valid && myForm.controls.notify.dirty}"-->
|
2021-02-10 11:24:52 +01:00
|
|
|
<div class="uk-margin uk-grid">
|
|
|
|
<div class=" inherit-color uk-width-medium"
|
|
|
|
title="Get e-mail notification when there are new user links related your community">Notify
|
|
|
|
for new user links:</div>
|
|
|
|
|
|
|
|
<mat-slide-toggle [checked]="notification.notify"
|
|
|
|
(change)="($event.source.checked = notification.notify);changeNotify(notification, !notification.notify, i)"></mat-slide-toggle>
|
2018-09-24 12:08:33 +02:00
|
|
|
</div>
|
|
|
|
|
2021-02-10 11:24:52 +01:00
|
|
|
<div *ngIf="notification.notify" [class]="notification.notify ? 'uk-margin' :
|
|
|
|
'uk-margin cursor-not-allowed'">
|
2018-11-01 18:21:10 +01:00
|
|
|
<div class="uk-form-label inherit-color">Frequency:</div>
|
2018-09-24 12:08:33 +02:00
|
|
|
<div class="uk-form-controls">
|
2018-11-01 18:21:10 +01:00
|
|
|
<select [class]="notification.notify ? 'uk-select' : 'uk-select uk-disabled'" id="form-horizontal-select"
|
2019-01-22 12:16:02 +01:00
|
|
|
[(ngModel)]="notification.frequency" (ngModelChange)="changeFrequency(i)" name="select_frequency">
|
|
|
|
<option [ngValue]="24" >Daily</option>
|
|
|
|
<option [ngValue]="48" >Every two days</option>
|
|
|
|
<option [ngValue]="168">Weekly</option>
|
2018-09-24 12:08:33 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-10-20 17:26:54 +02:00
|
|
|
<div *ngIf="showSaveResetButtons" class="uk-float-right">
|
|
|
|
<button type="submit" class="uk-button uk-button-primary" (click)="saveNotification(i)">Save Changes</button>
|
|
|
|
<button type="submit" class="uk-button" (click)="restoreNotification(i)">Reset</button>
|
2018-09-24 12:08:33 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
2021-02-10 11:24:52 +01:00
|
|
|
<!-- </div>-->
|
|
|
|
<!-- </ul>-->
|
2018-09-24 12:08:33 +02:00
|
|
|
|
|
|
|
</div>
|
2021-02-10 11:24:52 +01:00
|
|
|
|