-
Notifications
You must be signed in to change notification settings - Fork 276
/
system-notification-management-update.component.html
52 lines (52 loc) · 3.04 KB
/
system-notification-management-update.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<div class="row justify-content-center">
<div class="col-md-8">
<form name="editForm" role="form" (ngSubmit)="save()" #editForm="ngForm" [formGroup]="form">
<h2 id="myNotificationLabel" jhiTranslate="artemisApp.systemNotification.createOrEditLabel">Create or edit a system notification</h2>
<div>
<div class="form-group">
<label for="title" class="form-control-label" jhiTranslate="artemisApp.systemNotification.title">Title</label>
<input id="title" type="text" class="form-control" name="title" formControlName="title" />
</div>
<div class="form-group">
<label for="text" class="form-control-label" jhiTranslate="artemisApp.systemNotification.text">Text</label>
<input id="text" type="text" class="form-control" name="text" formControlName="text" />
</div>
<div class="form-group">
<label for="type" jhiTranslate="artemisApp.systemNotification.type">Type</label>
<select id="type" class="form-select" name="type" formControlName="type">
@for (systemNotificationType of systemNotificationTypes; track systemNotificationType) {
<option [value]="systemNotificationType.value">{{ systemNotificationType.name }}</option>
}
</select>
</div>
<div class="form-group">
<jhi-date-time-picker
[labelName]="'artemisApp.systemNotification.notificationDate' | artemisTranslate"
formControlName="notificationDate"
[shouldDisplayTimeZoneWarning]="false"
name="notificationDate"
/>
</div>
<div class="form-group">
<jhi-date-time-picker
[labelName]="'artemisApp.systemNotification.expireDate' | artemisTranslate"
formControlName="expireDate"
[shouldDisplayTimeZoneWarning]="false"
name="expireDate"
/>
@if (expireDate?.errors?.expireMustBeAfterNotification) {
<span class="text-danger">{{ 'error.systemNotificationNeedsNotificationBeforeExpiration' | artemisTranslate }}</span>
}
</div>
</div>
<div>
<button id="cancelButton" type="button" class="btn btn-secondary" (click)="goToOverview()">
<fa-icon [icon]="faBan" /> <span jhiTranslate="entity.action.cancel">Cancel</span>
</button>
<button id="saveButton" type="submit" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
<fa-icon [icon]="faSave" /> <span jhiTranslate="entity.action.save">Save</span>
</button>
</div>
</form>
</div>
</div>