ff4dade46c3e101af60ed9c70c4837aa8c234e12
[usecase-ui.git] /
1 <nz-modal [(nzVisible)]="showModel" nzTitle="Create Communication Service" (nzOnCancel)="handleCancel()"
2     (nzOnOk)="handleOk()" nzWidth="80%">
3     <div class="subnet_params_container">
4         <form nz-form>
5             <nz-form-item *ngFor="let item of comunicationFormItems; let i = index">
6                 <nz-form-label [nzSpan]="7" [nzRequired]="item.required" [nzFor]=" item.key">
7                     {{ item.title }}
8                 </nz-form-label>
9                 <nz-form-control [nzSpan]="16">
10                     <nz-tooltip [nzTitle]="item.scoped&&item.scopedText?item.scopedText:''" [nzPlacement]="'right'"
11                         [nzTrigger]="'focus'">
12                         <input nz-input nz-tooltip [id]="item.key" [name]="item.key" *ngIf="item.type === 'input'"
13                             [(ngModel)]="slicing_order_info[item.key]"
14                             [ngClass]="{'error-input-border' : validateRulesShow[i] === true}"
15                             [placeholder]="item.placeholder ? item.placeholder : ''"
16                             (blur)="item.required ? this.Util.validator(item.title,item.key,slicing_order_info[item.key],i,rulesText,validateRulesShow) : this.Util.validator()" />
17                     </nz-tooltip>
18                     <nz-radio-group [name]="item.key" [(ngModel)]="slicing_order_info[item.key]"
19                         *ngIf="item.type === 'radio'">
20                         <label nz-radio [nzValue]="option.key" *ngFor="let option of item.options">
21                             {{ option.title }}
22                         </label>
23                     </nz-radio-group>
24                     <nz-select [name]="item.key" [(ngModel)]="slicing_order_info[item.key]"
25                         *ngIf="item.type === 'select'">
26                         <nz-option [nzValue]="option.key" [nzLabel]="option.title" *ngFor="let option of item.options">
27                         </nz-option>
28                     </nz-select>
29                     <nz-form-explain *ngIf="item.type === 'input' && validateRulesShow[i]" class="validateRules">
30                         {{rulesText[i]}}
31                     </nz-form-explain>
32                 </nz-form-control>
33
34                 <div *ngIf="item.type === 'city-select'">
35                     <app-city-select [areaList]="areaList" [level]="areaLevel"></app-city-select>
36                 </div>
37             </nz-form-item>
38         </form>
39     </div>
40 </nz-modal>