1 <div class=
"form-group row">
2 <label class=
"cd-col-form-label"
5 <div class=
"cd-col-form-input"
8 <span *
ngIf=
"form.get('clients').value.length === 0"
9 class=
"no-border text-muted">
10 <span class=
"form-text text-muted"
11 i18n
>Any client can access
</span>
14 <ng-container formArrayName=
"clients">
15 <div *
ngFor=
"let item of clientsFormArray.controls; let index = index; trackBy: trackByFn">
18 <div class=
"card-header">
19 {{ (index +
1) | ordinal }}
20 <span class=
"float-right clickable"
22 (click)=
"removeClient(index)"
23 ngbTooltip=
"Remove">×</span>
26 <div class=
"card-body">
28 <div class=
"form-group row">
30 class=
"cd-col-form-label required"
31 for=
"addresses">Addresses
</label>
32 <div class=
"cd-col-form-input">
37 formControlName=
"addresses"
38 placeholder=
"192.168.0.10, 192.168.1.0/8">
39 <span class=
"invalid-feedback">
40 <span *
ngIf=
"showError(index, 'addresses', formDir, 'required')"
41 i18n
>This field is required.
</span>
43 <span *
ngIf=
"showError(index, 'addresses', formDir, 'pattern')">
44 <ng-container i18n
>Must contain one or more comma-separated values
</ng-container>
46 <ng-container i18n
>For example:
</ng-container> 192.168.0.10,
192.168.1.0/
8
53 <div class=
"form-group row">
55 class=
"cd-col-form-label"
56 for=
"access_type">Access Type
</label>
57 <div class=
"cd-col-form-input">
58 <select class=
"form-control"
61 formControlName=
"access_type">
62 <option value=
"">{{ getNoAccessTypeDescr() }}
</option>
63 <option *
ngFor=
"let item of nfsAccessType"
64 [value]=
"item.value">{{ item.value }}
</option>
66 <span class=
"form-text text-muted"
67 *
ngIf=
"getValue(index, 'access_type')">
68 {{ getAccessTypeHelp(index) }}
74 <div class=
"form-group row">
75 <label class=
"cd-col-form-label"
77 <span i18n
>Squash
</span>
78 <ng-container *
ngTemplateOutlet=
"squashHelperTpl"></ng-container>
80 <div class=
"cd-col-form-input">
81 <select class=
"form-control"
84 formControlName=
"squash">
85 <option value=
"">{{ getNoSquashDescr() }}
</option>
86 <option *
ngFor=
"let squash of nfsSquash"
87 [value]=
"squash">{{ squash }}
</option>
98 <div class=
"float-right">
99 <button class=
"btn btn-light "
100 (click)=
"addClient()"
102 <i [ngClass]=
"[icons.add]"></i>
103 <ng-container i18n
>Add clients
</ng-container>