cd2d6063c18dd4492384cafb02c4751a1574d951
[sdc.git] / catalog-ui / src / app / ng2 / pages / composition / interface-operatons / operation-creator / interface-operation-handler.component.html
1 <!--
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2021 Nordix Foundation. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19 -->
20
21 <div class="operation-handler">
22   <loader [display]="isLoading" [size]="'large'" [relative]="true"></loader>
23
24   <form class="w-sdc-form">
25
26     <div class="side-by-side">
27       <div class="form-item">
28         <sdc-input
29             label="{{ 'OPERATION_INTERFACE_TYPE' | translate }}"
30             [(value)]="interfaceType"
31             [disabled]="true">
32         </sdc-input>
33       </div>
34
35       <div class="form-item">
36         <sdc-input
37             label="{{ 'OPERATION_NAME' | translate }}"
38             [(value)]="operationToUpdate.name"
39             [disabled]="true">
40         </sdc-input>
41       </div>
42     </div>
43
44     <div class="i-sdc-form-item">
45       <sdc-input
46           label="{{'OPERATION_DESCRIPTION' | translate}}"
47           [(value)]="operationToUpdate.description"
48           (valueChange)="onDescriptionChange($event)">
49       </sdc-input>
50     </div>
51
52     <div class="i-sdc-form-item">
53       <sdc-input
54           label="{{'IMPLEMENTATION_NAME' | translate}}"
55           [(value)]="operationToUpdate.implementation.artifactName">
56       </sdc-input>
57     </div>
58
59     <div class="separator-buttons">
60       <tab tabTitle="Inputs"></tab>
61       <a class="add-param-link add-btn"
62          [ngClass]="{'disabled': readonly}"
63          (click)="onAddInput()">{{'OPERATION_ADD_INPUT' | translate}}
64       </a>
65     </div>
66
67     <div class="generic-table">
68       <div class="header-row table-row">
69         <span class="cell header-cell field-input-name">{{ 'OPERATION_PARAM_NAME' | translate }}</span>
70         <span class="cell header-cell field-input-value">{{ 'OPERATION_INPUT_VALUE' | translate }}</span>
71         <span class="cell header-cell remove">●●●</span>
72       </div>
73       <div class="empty-msg data-row" *ngIf="!inputs.length">
74         <div>{{ 'OPERATION_INPUT_EMPTY' | translate }}</div>
75       </div>
76       <input-param-row
77           *ngFor="let inputParameter of inputs"
78           class="data-row"
79           [input]="inputParameter"
80           [onRemoveInput]="onRemoveInput"
81           [validityChanged]="validityChanged">
82       </input-param-row>
83     </div>
84
85   </form>
86 </div>