97 lines
6.9 KiB
HTML
97 lines
6.9 KiB
HTML
<div id="manage-user-notifications" class=" uk-padding">
|
|
<div class="uk-text-large uk-text-center uk-width-5-6@l uk-width">Manage notification settings</div>
|
|
</div>
|
|
<div class="uk-container uk-margin-top">
|
|
<div *ngIf="updateErrorMessage" class="uk-alert uk-alert-danger" role="alert">{{updateErrorMessage}}</div>
|
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger" role="alert">{{errorMessage}}</div>
|
|
<div *ngIf="successfulSaveMessage" class="uk-alert uk-alert-success" role="alert">{{successfulSaveMessage}}</div>
|
|
<div *ngIf="successfulResetMessage" class="uk-alert uk-alert-warning" role="alert">{{successfulResetMessage}}</div>
|
|
<div *ngIf="showLoading" class="uk-animation-fade uk-width-1-1" role="alert"><img class="uk-align-center loading-gif"></div>
|
|
<div *ngIf="communityId != null && userNotifications && !showLoading && !errorMessage" class="uk-first-column uk-align-center uk-width-2-3">
|
|
<div class="uk-alert uk-alert-primary" role="alert">Notification settings are related to your personal account. </div>
|
|
<form class="uk-form-horizontal">
|
|
<div class="uk-margin">
|
|
|
|
<div class="uk-form-label inherit-color" title="Get e-mail notification when there are changes in the managers list of your community">Notify for manager changes:</div>
|
|
<div class="uk-form-controls uk-form-controls-text" data-uk-button-group>
|
|
<button *ngIf="userNotifications.notifyForNewManagers" class="uk-button uk-button-primary uk-button-small"
|
|
data-uk-button>ON</button>
|
|
<button *ngIf="!userNotifications.notifyForNewManagers" class="uk-button uk-button-default uk-button-small"
|
|
(click)="changeValueForNewManagers(userNotifications.notifyForNewManagers)" data-uk-button>ON</button>
|
|
<button *ngIf="!userNotifications.notifyForNewManagers" class="uk-button uk-button-danger uk-button-small"
|
|
data-uk-button>OFF</button>
|
|
<button *ngIf="userNotifications.notifyForNewManagers" class="uk-button uk-button-default uk-button-small"
|
|
(click)="changeValueForNewManagers(userNotifications.notifyForNewManagers)" data-uk-button>OFF</button>
|
|
</div>
|
|
</div>
|
|
<div class="uk-margin">
|
|
<div class="uk-form-label inherit-color" title="Get e-mail notification when a user subscribes in your community">Notify for new subscribers:</div>
|
|
<div class="uk-form-controls uk-form-controls-text" data-uk-button-group>
|
|
<button *ngIf="userNotifications.notifyForNewSubscribers" class="uk-button uk-button-primary uk-button-small"
|
|
data-uk-button>ON</button>
|
|
<button *ngIf="!userNotifications.notifyForNewSubscribers" class="uk-button uk-button-default uk-button-small"
|
|
(click)="changeValueForNewSubscribers(userNotifications.notifyForNewSubscribers)" data-uk-button>ON</button>
|
|
<button *ngIf="!userNotifications.notifyForNewSubscribers" class="uk-button uk-button-danger uk-button-small"
|
|
data-uk-button>OFF</button>
|
|
<button *ngIf="userNotifications.notifyForNewSubscribers" class="uk-button uk-button-default uk-button-small"
|
|
(click)="changeValueForNewSubscribers(userNotifications.notifyForNewSubscribers)" data-uk-button>OFF</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- <table class="uk-table uk-width-1-2 uk-align-center">
|
|
<tbody>
|
|
<div>
|
|
<tr>
|
|
<td>
|
|
<p>Notify for new managers:</p>
|
|
</td>
|
|
<td>
|
|
<div data-uk-button-group>
|
|
<button *ngIf="userNotifications.notifyForNewManagers" class="uk-button uk-button-primary uk-button-small"
|
|
data-uk-button>ON</button>
|
|
<button *ngIf="!userNotifications.notifyForNewManagers" class="uk-button-default uk-button-small"
|
|
(click)="changeValueForNewManagers(userNotifications.notifyForNewManagers)" data-uk-button>ON</button>
|
|
<button *ngIf="!userNotifications.notifyForNewManagers" class="uk-button uk-button-danger uk-button-small"
|
|
data-uk-button>OFF</button>
|
|
<button *ngIf="userNotifications.notifyForNewManagers" class="uk-button-default uk-button-small"
|
|
(click)="changeValueForNewManagers(userNotifications.notifyForNewManagers)" data-uk-button>OFF</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>Notify for new subscribers:</p>
|
|
</td>
|
|
<td>
|
|
<div data-uk-button-group>
|
|
<button *ngIf="userNotifications.notifyForNewSubscribers" class="uk-button uk-button-primary uk-button-small"
|
|
data-uk-button>ON</button>
|
|
<button *ngIf="!userNotifications.notifyForNewSubscribers" class="uk-button-default uk-button-small"
|
|
(click)="changeValueForNewSubscribers(userNotifications.notifyForNewSubscribers)" data-uk-button>ON</button>
|
|
<button *ngIf="!userNotifications.notifyForNewSubscribers" class="uk-button uk-button-danger uk-button-small"
|
|
data-uk-button>OFF</button>
|
|
<button *ngIf="userNotifications.notifyForNewSubscribers" class="uk-button-default uk-button-small"
|
|
(click)="changeValueForNewSubscribers(userNotifications.notifyForNewSubscribers)" data-uk-button>OFF</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</div>
|
|
</tbody>
|
|
</table> -->
|
|
<!-- <div class = "uk-grid-margin uk-first-column uk-align-center uk-width-1-3">
|
|
<button *ngIf="hasChanged" class="uk-button uk-button-primary" (click)="updateUserNotifications()">Save</button>
|
|
<button *ngIf="!hasChanged" class="uk-button uk-button-default" disabled>Save</button>
|
|
<button class="uk-button" (click)="resetForm(communityId)">Reset</button>
|
|
</div> -->
|
|
|
|
|
|
<mailPrefs id="mailPrefs" [showSaveResetButtons]="false"></mailPrefs>
|
|
<div class = "uk-first-column uk-align-center uk-width-1-3">
|
|
<button *ngIf="hasChanged || mailPrefsChanged()" class="uk-button uk-button-primary" (click)="updateUserNotifications()">Save</button>
|
|
<button *ngIf="!hasChanged && !mailPrefsChanged()" class="uk-button uk-button-default" disabled>Save</button>
|
|
<button class="uk-button" (click)="resetForm()">Reset</button>
|
|
</div>
|