Enable user to create new resource dictionary with json
[ccsdk/cds.git] / cds-ui / designer-client / src / app / modules / feature-modules / resource-dictionary / resource-dictionary-creation / resource-dictionary-creation.component.html
1 <!--/*
2 * ============LICENSE_START=======================================================
3 * ONAP : CDS
4 * ================================================================================
5 * Copyright (C) 2020 TechMahindra
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 <app-header></app-header>
21
22 <div class="new-wrapper">
23     <div class="container-fluid main-container">
24         <header class="page-title">
25             <div class="row">
26                 <h2 class="col m-0 pb-0">
27                     <ul class="breadcrumb-header">
28                         <li><a routerLink="/resource-dictionary">Resource Dictionary</a></li>
29                         <i class="fa fa-angle-right ml-2 mr-2"></i>
30                         <li>Dictionary Name</li>
31                     </ul>
32                 </h2>
33             </div>
34         </header>
35         <div class="container-fluid body-container">
36             <div class="container card creat-card col-11">
37                 <div class="single-line-model customKeyTitle">
38                     <h5 class="label-name w-100 ">
39                         Dictionary Name
40                     </h5>
41                     <!-- <label class="label-name"></label> -->
42                     <span>Last modified {{createDate}} by me</span>
43                 </div>
44             </div>
45         </div>
46         <div class="container-fluid body-container">
47             <div class="container">
48                 <div class="creat-action-container">
49                     <a class="action-button" (click)="createDictionary()">
50                         <i class="icon-save-sm" aria-hidden="true"></i>
51                         <span>Save</span>
52                     </a>
53                     <a href="#" class="action-button" (click)="goBackToDashBorad()">
54                         <i class="icon-discard-sm" aria-hidden="true"></i>
55                         <span>Discard Changes</span>
56                     </a>
57                     <a href="#" class="action-button">
58                         <i class="icon-clone-sm" aria-hidden="true"></i>
59                         <span>Clone</span>
60                     </a>
61                     <a href="#" class="action-button delete">
62                         <i class="icon-delete-sm" aria-hidden="true"></i>
63                         <span>Delete</span>
64                     </a>
65                 </div>
66                 <nav class="row">
67                     <!--Nav Tabs-->
68                     <div class="col">
69                         <div class="nav nav-tabs ed" id="nav-tab" role="tablist">
70                             <a class="nav-item nav-link active" id="nav-metadata-tab" data-toggle="tab"
71                                 href="#nav-metadata" role="tab" aria-controls="nav-metadata" aria-selected="false"
72                                 autofocus #nameit (focusout)="saveDictionaryToStore()">METADATA</a>
73                             <a class="edit-button" id="nav-editor-tab" data-toggle="tab" href="#nav-editor" role="tab"
74                                 aria-controls="nav-editor" aria-selected="false">EDITOR MODE</a>
75
76                         </div>
77                     </div>
78                 </nav>
79                 <div>
80                     <div class="row mt-4">
81                         <div class="col">
82                             <div class="tab-content" id="nav-tabContent">
83                                 <div class="tab-pane fade show active" id="nav-metadata" role="tabpanel"
84                                     aria-labelledby="nav-metadata-tab">
85                                     <app-dictionary-metadata></app-dictionary-metadata>
86                                     <nav class="row">
87                                         <!--Nav Tabs-->
88                                         <div class="col">
89                                             <div class="nav nav-tabs " id="nav-tab" role="tablist">
90                                                 <a class="nav-item nav-link active" id="nav-source-tab"
91                                                     data-toggle="tab" href="#nav-source" role="tab"
92                                                     aria-controls="nav-source" aria-selected="false">SOURCES</a>
93                                             </div>
94                                         </div>
95                                     </nav>
96                                     <div class="row mt-4">
97                                         <div class="col">
98                                             <div class="tab-content" id="nav-tabContent">
99                                                 <div class="tab-pane fade show active" id="nav-source" role="tabpanel"
100                                                     aria-labelledby="nav-source-tab">
101                                                     <app-sources-template></app-sources-template>
102                                                 </div>
103                                             </div>
104                                         </div>
105                                     </div>
106                                 </div>
107                                 <div class="tab-pane fade col-11" id="nav-editor" role="tabpanel"
108                                     aria-labelledby="nav-editor-tab">
109                                     <div class="card creat-card">
110                                         <div class="editor-container">
111                                             <app-dictionary-editor></app-dictionary-editor>
112                                         </div>
113                                     </div>
114                                 </div>
115                             </div>
116                         </div>
117                     </div>
118
119
120                 </div>
121             </div>
122         </div>
123     </div>