8382f1e842279c5a88aa72d32e92a49de759ff59
[sdc.git] /
1 <!--
2   ~ Copyright © 2016-2018 European Support Limited
3   ~
4   ~ Licensed under the Apache License, Version 2.0 (the "License");
5   ~ you may not use this file except in compliance with the License.
6   ~ You may obtain a copy of the License at
7   ~
8   ~      http://www.apache.org/licenses/LICENSE-2.0
9   ~
10   ~ Unless required by applicable law or agreed to in writing, software
11   ~ distributed under the License is distributed on an "AS IS" BASIS,
12   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   ~ See the License for the specific language governing permissions and
14   ~ limitations under the License.
15   -->
16  
17 <div class="cell field-name">
18     <ui-element-input
19         *ngIf="!isAssociateWorkflow"
20         data-tests-id="paramName"
21         [(value)]="param.name"
22         [readonly]="readonly">
23     </ui-element-input>
24     <span *ngIf="isAssociateWorkflow">{{param.name}}</span>
25 </div>
26
27 <div class="cell field-type">
28     <ui-element-dropdown
29         *ngIf="!isAssociateWorkflow"
30         data-tests-id="paramType"
31         [values]="propTypeEnum"
32         [(value)]="param.type"
33         (valueChange)="onChangeType()"
34         [readonly]="readonly">
35     </ui-element-dropdown>
36     <span *ngIf="isAssociateWorkflow">{{param.type}}</span>
37 </div>
38
39 <div class="cell field-property" *ngIf="isInputParam">
40     <ui-element-dropdown
41         data-tests-id="paramProperty"
42         [values]="filteredInputProps"
43         [(value)]="param.property"
44         [readonly]="readonly">
45     </ui-element-dropdown>
46 </div>
47
48 <div class="cell field-mandatory" *ngIf="!isAssociateWorkflow">
49     <checkbox
50         *ngIf="!isAssociateWorkflow"
51         data-tests-id="paramMandatory"
52         [(checked)]="param.mandatory"
53         [ngClass]="{'disabled':readonly}">
54     </checkbox>
55 </div>
56
57 <div class="cell remove" *ngIf="!isAssociateWorkflow && !readonly">
58     <span
59         class="sprite-new delete-item-icon"
60         data-tests-id="removeInputParam"
61         (click)="onRemoveParam(param)">
62     </span>
63 </div>