3 * Copyright (c) 2017 ZTE Corporation.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * and the Apache License 2.0 which both accompany this distribution,
7 * and are available at http://www.eclipse.org/legal/epl-v10.html
8 * and http://www.apache.org/licenses/LICENSE-2.0
11 * ZTE - initial API and implementation and/or initial documentation
15 <div *ngIf="param.show" class="parameter">
16 <div *ngIf="currentShowLabel" class="parameter-section">
17 <label *ngIf="true === param.required" class="parameter-required">*</label>
18 <input *ngIf="currentCanEditName" class="parameter-label plx-input" type="text" [ngModel]="param.name" (ngModelChange)="keyChange($event)">
19 <label *ngIf="!currentCanEditName" class="parameter-label">{{param.name}}</label>
21 <div *ngIf="currentShowValue" class="parameter-section">
22 <div *ngIf="showValueValue" class="parameter-item">
23 <div [ngSwitch]="param.valueSource" class="parameter-item">
24 <input *ngSwitchCase="valueTypeEnum[valueTypeEnum.number]" class="parameter-value plx-input" type="text" [ngModel]="param.value"
25 (ngModelChange)="valueChange($event)" [disabled]="!currentCanEditValue">
26 <select *ngSwitchCase="valueTypeEnum[valueTypeEnum.boolean]" class="parameter-value" type="text" [ngModel]="param.value"
27 (ngModelChange)="valueChange($event)" [disabled]="!currentCanEditValue">
29 <option>false</option>
31 <tree-select *ngSwitchCase="valueSourceEnum[valueSourceEnum.Plan]" name="simpleSelect" [items]="planOptions" childrenField="children"
32 #simpleSelect="ngModel" class="parameter-value" [ngModel]="planValue" (ngModelChange)="valueChange($event)"
33 [disabled]="!currentCanEditValue"></tree-select>
34 <select *ngSwitchCase="valueSourceEnum[valueSourceEnum.Topology]" class="parameter-value" type="text" [ngModel]="param.value"
35 (ngModelChange)="valueChange($event)" [disabled]="!currentCanEditValue">
36 <option *ngFor="let topology of topologyOptions" value="{{topology.value}}">{{topology.name}}
39 <!--string, Variable-->
40 <input *ngSwitchDefault class="parameter-value plx-input" type="text" [ngModel]="param.value" (ngModelChange)="valueChange($event)"
41 [disabled]="!currentCanEditValue">
44 <select *ngIf="showValueSource" class="parameter-item" style="width:auto;" type="text" [ngModel]="param.valueSource" (ngModelChange)="valueSourceChange($event)"
45 [disabled]="!currentCanEditValue">
46 <option *ngFor="let sourceItem of sourceItems" value="{{sourceItem.value}}">
51 <div *ngIf="currentCanInsert" class="parameter-section">
52 <button type="button" class="plx-btn plx-btn-primary" (click)="insertParam()">
53 <i class="fa fa-plus"></i>
56 <div *ngIf="currentCanDelete" class="parameter-section">
57 <button type="button" class="plx-btn plx-btn-error" (click)="deleteParam()">
58 <i class="fa fa-minus"></i>