Dynamic columns in GAB table
[sdc.git] / catalog-ui / src / app / ng2 / components / logic / generic-artifact-browser / generic-artifact-browser-column-provider.component.html
1 <!--
2   ~ Copyright (C) 2019 Nokia. All rights reserved.
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>
18   <form class="gab-column-provider-form" #generalForm="ngForm">
19     <input type="text" name="name" (keyup)='checkNameDuplications($event)'
20            ng-maxlength="50"
21            [(ngModel)]="name"
22            class="gab-column-provider-input"
23            required>
24     <label placeholder="Column name" alt="Column name"></label>
25
26     <input type="text" name="path" (keyup)='checkPathDuplications($event)'
27            [(ngModel)]="path"
28            class="gab-column-provider-input"
29            required>
30     <label placeholder="Json path" alt="Json path"></label>
31
32     <button [disabled]="generalForm.invalid" class="tlv-btn blue" data-tests-id="Add" (click)="addColumn()">Add</button>
33     <button class="tlv-btn blue" data-tests-id="Close" (click)="cancelAddingNewColumn()">Cancel</button>
34   </form>
35 </div>