-
Notifications
You must be signed in to change notification settings - Fork 540
Expand file tree
/
Copy pathresource-policy-form.component.html
More file actions
81 lines (78 loc) · 3.28 KB
/
resource-policy-form.component.html
File metadata and controls
81 lines (78 loc) · 3.28 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<div>
@if (formModel) {
<ds-form
#formRef="formComponent"
[formId]="formId"
[formModel]="formModel"
[displaySubmit]="false"
[displayCancel]="false"></ds-form>
}
<div class="container-fluid">
<label for="ResourcePolicyObject">{{'resource-policies.form.eperson-group-list.label' | translate}}</label>
<input id="ResourcePolicyObject" class="form-control mb-3" type="text" [value]="resourcePolicyTargetName$ | async">
<ul ngbNav #nav="ngbNav" class="nav-pills" [(activeId)]="navActiveId" (navChange)="onNavChange($event)">
<li [ngbNavItem]="'eperson'" role="presentation">
<a ngbNavLink>{{'resource-policies.form.eperson-group-list.tab.eperson' | translate}}</a>
<ng-template ngbNavContent>
<ds-eperson-group-list (select)="updateObjectSelected($event, true)"></ds-eperson-group-list>
</ng-template>
</li>
<li [ngbNavItem]="'group'" role="presentation">
<a ngbNavLink>{{'resource-policies.form.eperson-group-list.tab.group' | translate}}</a>
<ng-template ngbNavContent>
<ds-eperson-group-list [isListOfEPerson]="false"
(select)="updateObjectSelected($event, false)"></ds-eperson-group-list>
</ng-template>
</li>
</ul>
<div [ngbNavOutlet]="nav"></div>
<div>
<hr>
<div class="mb-3 row">
<div class="col text-end">
<button type="reset"
class="btn btn-default"
[dsBtnDisabled]="(isProcessing | async)"
(click)="onReset()">{{'form.cancel' | translate}}</button>
<button type="button"
class="btn btn-primary"
[dsBtnDisabled]="(isFormValid() | async) !== true || (isProcessing | async)"
(click)="onSubmit()">
@if ((isProcessing | async)) {
<span>
<i class='fas fa-circle-notch fa-spin'></i> {{'submission.workflow.tasks.generic.processing' | translate}}
</span>
}
@if ((isProcessing | async) !== true) {
<span>
{{'form.submit' | translate}}
</span>
}
</button>
</div>
</div>
</div>
</div>
</div>
<ng-template #content let-modal>
<div class="modal-header">
<h4 class="modal-title" id="modal-title">{{ 'resource-policies.form.eperson-group-list.modal.header' | translate }}</h4>
<button type="button" class="btn-close" aria-label="Close" (click)="modal.close()">
</button>
</div>
<div class="modal-body">
<div class="d-flex flex-row">
<div class="me-3">
<i class="fas fa-info-circle fa-2x text-info"></i>
</div>
<div>
<p [innerHTML]="(navActiveId === 'eperson' ? 'resource-policies.form.eperson-group-list.modal.text1.toGroup' :
'resource-policies.form.eperson-group-list.modal.text1.toEPerson') | translate" class="fw-bold"></p>
<p [innerHTML]="'resource-policies.form.eperson-group-list.modal.text2' | translate"></p>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" (click)="modal.close()">{{ 'resource-policies.form.eperson-group-list.modal.close' | translate }}</button>
</div>
</ng-template>