]>
Commit | Line | Data |
---|---|---|
f67539c2 | 1 | <cd-modal [modalRef]="activeModal"> |
a4b75251 | 2 | <ng-container i18n="form title" |
81eedcae TL |
3 | class="modal-title">{{ action | titlecase }} {{ resource | upperFirst }}</ng-container> |
4 | ||
5 | <ng-container class="modal-content"> | |
9f95a23c | 6 | <form #formDir="ngForm" |
81eedcae | 7 | [formGroup]="osdPgScrubForm" |
f91f0fd5 TL |
8 | novalidate |
9 | cdFormScope="osd"> | |
81eedcae TL |
10 | <div class="modal-body osd-modal"> |
11 | <!-- Basic --> | |
12 | <cd-config-option [optionNames]="basicOptions" | |
13 | [optionsForm]="osdPgScrubForm" | |
14 | [optionsFormDir]="formDir" | |
15 | [optionsFormGroupName]="'basicFormGroup'" | |
16 | #basicOptionsValues></cd-config-option> | |
17 | <!-- Advanced --> | |
18 | <div class="row"> | |
19 | <div class="col-sm-12"> | |
20 | <a class="pull-right margin-right-md" | |
21 | (click)="advancedEnabled = true" | |
22 | *ngIf="!advancedEnabled" | |
23 | i18n>Advanced...</a> | |
24 | </div> | |
25 | </div> | |
26 | <div *ngIf="advancedEnabled"> | |
f91f0fd5 TL |
27 | <h3 class="page-header" |
28 | i18n>Advanced configuration options</h3> | |
81eedcae TL |
29 | <cd-config-option [optionNames]="advancedOptions" |
30 | [optionsForm]="osdPgScrubForm" | |
31 | [optionsFormDir]="formDir" | |
32 | [optionsFormGroupName]="'advancedFormGroup'" | |
33 | #advancedOptionsValues></cd-config-option> | |
34 | </div> | |
35 | </div> | |
36 | <div class="modal-footer"> | |
f67539c2 TL |
37 | <cd-form-button-panel (submitActionEvent)="submitAction()" |
38 | [form]="osdPgScrubForm" | |
39 | [showSubmit]="permissions.configOpt.update" | |
40 | [submitText]="(action | titlecase) + ' ' + (resource | upperFirst)"> | |
41 | </cd-form-button-panel> | |
81eedcae TL |
42 | </div> |
43 | </form> | |
44 | </ng-container> | |
45 | </cd-modal> |