aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-metadata/dictionary-metadata.component.html
blob: 8e355449bfaa09e308c4b273a79cfd8b4c0e3a12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!--/*
* ============LICENSE_START=======================================================
* ONAP : CDS
* ================================================================================
* Copyright (C) 2020 TechMahindra
*=================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
*/-->
<div class="card creat-card col-11">
    <div class="single-line-model">
        <label class="label-name">Name</label>
        <div class="label-input">
            <input type="input" [(ngModel)]="metaDataTab.name" placeholder="Topology name.vLB.CDS">
        </div>
        <!-- <div class="model-note-container error-message">
            Package name already exists with this version. Please enter a different name or enter different version
            number.
        </div>  -->
    </div>

    <!-- <div class="single-line-model">
        <label class="label-name">Version <span>*</span></label>
        <div class="label-input">
            <input type="input" [readOnly]="!packageNameAndVersionEnables" [(ngModel)]="metaDataTab.version"
                (input)="validatePackageNameAndVersion()" placeholder="Example: 1.0.0"> 
        </div>
        <div class="model-note-container error-message">{{errorMessage}}</div>
    </div>  -->
    <div class="single-line-model">
        <label class="label-name">Entry Schema</label>
        <div class="label-input">
            <input type="input" [(ngModel)]="metaDataTab.property.entry_schema.type" placeholder="Entry Schema">
        </div>
    </div>
    <div class="single-line-model">
        <label class="label-name">Data Type</label>
        <div class="label-input">
            <input type="input" [(ngModel)]="metaDataTab.property.type" placeholder="Data Type">
        </div>
    </div>
    <div class="single-line-model">
        <label class="label-name">Description</label>
        <div class="label-input">
            <input type="input" [(ngModel)]="metaDataTab.property.description" placeholder="Descripe the package">
        </div>
    </div>
    <div class="single-line-model">
        <label class="label-name">Required</label>
        <div class="label-input">
            <input type="checkbox" [checked]="metaDataTab.property.required" style="width: auto;"
                (change)="metaDataTab.property.required = !metaDataTab.property.required" placeholder="required">
        </div>
    </div>
    <!-- <div class="single-line-model">
        <label class="label-name">Library Instance</label>
        <div class="label-input">
            <input type="input" [(ngModel)]="metaDataTab.libraryInstance" placeholder="Library Instance">
        </div>
    </div> -->
    <!-- <div class="single-line-model">
        <label class="label-name">Derived From</label>
        <div class="label-input">
            <input type="input" [(ngModel)]="metaDataTab.derivedFrom" placeholder="Derived From">
        </div>
    </div> -->

    <div class="single-line-model">
        <label class="label-name">Tags</label>
        <div class="label-input">
            <input type="input" (keyup.enter)="addTag($event)"
                placeholder="Ex., vDNS-CDS">

        </div>
        <div class="model-note-container tag-notes">Seprate tags with comma or space</div>
        <div class="model-note-container tages-container">
            <span *ngFor="let tag of tags" class="single-tage">{{tag}} <i (click)="removeTag(tag)"
                    class="fa fa-times-circle"></i></span>
        </div>
    </div>
</div>