9a5c101e87edd7ee673ef0c6bdfc24ce2e9b6d4e
[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         *ngIf="filteredInputProps.length || !isAssociateWorkflow"
42         data-tests-id="paramProperty"
43         [values]="filteredInputProps"
44         [(value)]="param.property"
45         [readonly]="readonly">
46     </ui-element-dropdown>
47     <span
48         *ngIf="!filteredInputProps.length && isAssociateWorkflow"
49         class="no-properties-error">
50         No available properties of this type.
51     </span>
52 </div>
53
54 <div class="cell field-mandatory" *ngIf="!isAssociateWorkflow">
55     <checkbox
56         *ngIf="!isAssociateWorkflow"
57         data-tests-id="paramMandatory"
58         [(checked)]="param.mandatory"
59         [ngClass]="{'disabled':readonly}">
60     </checkbox>
61 </div>
62
63 <div class="cell remove" *ngIf="!isAssociateWorkflow && !readonly">
64     <span
65         class="sprite-new delete-item-icon"
66         data-tests-id="removeInputParam"
67         (click)="onRemoveParam(param)">
68     </span>
69 </div>