3 * Copyright (c) 2017 ZTE Corporation.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * and the Apache License 2.0 which both accompany this distribution,
\r
7 * and are available at http://www.eclipse.org/legal/epl-v10.html
\r
8 * and http://www.apache.org/licenses/LICENSE-2.0
\r
11 * ZTE - initial API and implementation and/or initial documentation
\r
15 <div class="form-group row">
\r
16 <div *ngIf="showLabel" class="col-md-3 text-md-right">
\r
17 <input *ngIf="canEditName" class="form-control" type="text" [(ngModel)]="param.name">
\r
18 <label *ngIf="!canEditName" class="form-control-label">{{param.name}}</label>
\r
20 <div [ngClass]="valueGroupClass">
\r
21 <div [ngSwitch]="param.valueSource">
\r
22 <input *ngSwitchCase="sourceEnum[sourceEnum.String]" [ngClass]="valueClass" class="form-control"
\r
23 type="text" [ngModel]="param.value" (ngModelChange)="modelChange($event)">
\r
24 <!-- TODO add plan and Top parameters -->
\r
27 <div *ngIf="canDelete" class="col-md-2">
\r
28 <button type="button" class="btn oes-red-bg pull-right" (click)="deleteParam()">
\r
29 <i class="fa fa-minus"></i>
\r