1128d60e0420d8aa531f4d645010c53054a9dec5
[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         (valueChange)="onChangeName()"
23         [readonly]="readonly">
24     </ui-element-input>
25     <span *ngIf="isAssociateWorkflow">{{param.name}}</span>
26 </div>
27
28 <div class="cell field-type">
29     <ui-element-dropdown
30         *ngIf="!isAssociateWorkflow"
31         data-tests-id="paramType"
32         [values]="propTypeEnum"
33         [(value)]="param.type"
34         (valueChange)="onChangeType()"
35         [readonly]="readonly">
36     </ui-element-dropdown>
37     <span *ngIf="isAssociateWorkflow">{{param.type}}</span>
38 </div>
39
40 <div class="cell field-property" *ngIf="isInputParam">
41     <ui-element-dropdown
42         *ngIf="filteredInputProps.length || !isAssociateWorkflow"
43         data-tests-id="paramProperty"
44         [values]="filteredInputProps"
45         value="paramId"
46         (valueChange)="onChangeProperty($event)"
47         [readonly]="readonly">
48     </ui-element-dropdown>
49     <span
50         *ngIf="!filteredInputProps.length && isAssociateWorkflow"
51         class="no-properties-error">
52         {{ 'PARAM_NONE_OF_TYPE' | translate }}
53     </span>
54 </div>
55
56 <div class="cell field-mandatory" *ngIf="!isAssociateWorkflow">
57     <checkbox
58         *ngIf="!isAssociateWorkflow"
59         data-tests-id="paramMandatory"
60         [(checked)]="param.required"
61         [ngClass]="{'disabled':readonly}">
62     </checkbox>
63 </div>
64
65 <div class="cell remove" *ngIf="!isAssociateWorkflow && !readonly">
66     <svg-icon
67       name="trash-o"
68       mode="info"
69       size="small"
70       testId="removeInputParam"
71       (click)="onRemoveParam(param)"
72       [clickable]="true">
73   </svg-icon>
74 </div>