48cbc127195b30177972532387808b3b3c8dfed5
[dcaegen2/services.git] / components / datalake-handler / admin / src / src / app / dashboard-setting / template / template-list / edit-template-modal / edit-template-modal.component.html
1 <!--
2     Copyright (C) 2019 CMCC, Inc. and others. 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 <div class="p-1">
17   <div class="modal-header pb-0 border-0">
18     <div class="container-fluid">
19       <div class="row">
20         <div class="col-md-12">
21           <label class="dl-h3">{{ templateInputTitle }}</label>
22           <i class="fas fa-plus fa-2x close-btn-icon" (click)="activeModal.close('Close click')"></i>
23         </div>
24       </div>
25       <div class="row">
26         <div class="col-md-12">
27           <hr>
28         </div>
29       </div>
30     </div>
31   </div>
32   <div class="modal-body border-0">
33     <div class="container-fluid">
34
35       <div class="form-group">
36         <div class="row">
37           <div class="col-md-2">
38             <label class="dl-emphasis1" for="inputtemplateName">{{ 'TEMPLATE_NAME' | translate }}</label>
39           </div>
40           <div class="col-md-6">
41             <input #inputtemplateName [(ngModel)]="this.templateInput.name" class="form-control dl-input-text"
42               type="text" placeholder="Username" />
43           </div>
44         </div>
45       </div>
46
47       <div class="form-group">
48         <div class="row">
49           <div class="col-md-2">
50             <label class="dl-emphasis1" for="templatebody">{{ 'TEMPLATE_BODY'| translate }}</label>
51           </div>
52           <div class="col-md-10">
53             <textarea #templatebody [(ngModel)]="this.templateInput.body" class="form-control dl-input-text"
54               placeholder="Put the template design here..." rows="3" style="min-height: 300px!important;"></textarea>
55           </div>
56         </div>
57       </div>
58
59       <div class="form-group">
60         <div class="row">
61           <div class="col-md-2">
62             <label class="dl-emphasis1" style="line-height: 2.25rem">{{ 'FIELUPLOAD' | translate }}</label>
63           </div>
64           <div class="col-md-2 p-1" style="position: relative;
65     margin-left: 0.5rem;">
66             <input type="file" id="f-file" (change)="this.jsReadFiles()" />
67             <label for="f-file" style="height: 100%;width: 100%;">
68               <button type="button" class="btn dl-btn-dark btn-block" style="cursor: pointer">
69                 {{ 'FIELUPLOAD' | translate }}
70               </button>
71             </label>
72           </div>
73           <div class="col-md-2">
74             <span style="line-height: 2.25rem">{{this.fileName}}</span>
75           </div>
76         </div>
77       </div>
78
79       <div class="form-group">
80         <div class="row">
81           <div class="col-md-2">
82             <label class="dl-emphasis1">{{ 'TEMPLATE_TYPE' | translate }}</label>
83           </div>
84           <div class="col-md-8">
85             <select #templatetype class="custom-select dl-input-text" id="selDataFormat">
86               <option *ngFor="let item of templatetypedata" [selected]="item.name === defaultDesigntype">
87                 {{item.name}}</option>
88             </select>
89           </div>
90         </div>
91       </div>
92
93       <div class="form-group">
94         <div class="row">
95           <div class="col-md-2">
96             <label class="dl-emphasis1">{{ 'TOPICS_NAME' | translate }}</label>
97           </div>
98           <div class="col-md-8">
99             <select #topic class="custom-select dl-input-text" id="selDataFormat">
100               <option *ngFor="let item of topicname" [selected]="item === defaultTopicname">{{item}}</option>
101             </select>
102           </div>
103         </div>
104       </div>
105
106     </div>
107   </div>
108   <div class="modal-footer border-0 pt-0 pb-2">
109     <div class="container-fluid">
110       <div class="row">
111         <div class="col-md-6 p-0">
112         </div>
113         <div class="col-md-3 p-1">
114           <span>
115             <button type="button" class="btn dl-btn-dark btn-block" (click)="this.passBack()">
116               Save
117             </button>
118           </span>
119         </div>
120         <div class="col-md-3 p-1">
121           <span>
122             <button type="button" class="btn dl-btn-light btn-block" (click)="activeModal.close('Close click')">
123               Cancel
124             </button>
125           </span>
126         </div>
127       </div>
128     </div>
129   </div>
130 </div>