8ce28688a74c8ac41ff52ad673851e74fd23ef10
[dcaegen2/services.git] /
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
17 <div class="p-1">
18   <div class="modal-header pb-0 border-0">
19     <div class="container">
20       <div class="row">
21         <div class="col-md-12">
22           <label class="dl-h3" *ngIf="this.tempDb.name==undefined">{{ "NewDashboard" | translate}}</label>
23           <label class="dl-h3" style="letter-spacing: 0" *ngIf="this.tempDb.name!=undefined">{{this.tempDb.name}}</label>
24         </div>
25       </div>
26
27       <div class="row">
28         <div class="col-md-12">
29           <hr>
30         </div>
31       </div>
32     </div>
33   </div>
34
35   <div class="modal-body border-0 ml-4 mr-4">
36     <div class="container">
37
38       <div class="form-group">
39         <div class="row">
40           <div class="col-md-3"><label class="dl-emphasis1" for="inputBucket">{{ "NAME" | translate}}</label></div>
41           <div class="col-md-4">
42             <select #t_dataDashboardName  class="custom-select dl-input-text select-disabled"  *ngIf="this.tempDb.name !=undefined" disabled="disabled" id="inputBucket" style="background: rgba(233, 236, 239, 0.5)">
43               <option [selected]="this.tempDb.name==this.tempDb.name" >
44                 {{ this.tempDb.name }}</option>
45             </select>
46           </div>
47         </div>
48       </div>
49
50       <div class="form-group">
51         <div class="row">
52           <div class="col-md-3"><label class="dl-emphasis1" for="inputHost">{{ "HOST" | translate}}</label></div>
53           <div class="col-md-4">
54             <input [(ngModel)]="this.tempDb.host" class="form-control dl-input-text" id="inputHost" type="text"
55                    placeholder="{{ 'InputValue' | translate}}" [disabled]="!this.tempDb.enabled" [attr.disabled]='!this.tempDb.enabled?true:undefined'>
56           </div>
57         </div>
58       </div>
59
60       <div class="form-group">
61         <div class="row">
62           <div class="col-md-3"><label class="dl-emphasis1" for="inputPort">{{ "PORT" | translate}}</label></div>
63           <div class="col-md-3">
64             <input [(ngModel)]="this.tempDb.port" class="form-control dl-input-text" id="inputPort" type="text"
65                    placeholder="{{ 'InputValue' | translate}}" (input)="this.adminService.onKeyPressNumber($event)" [disabled]="!this.tempDb.enabled" [attr.disabled]='!this.tempDb.enabled?true:undefined'>
66           </div>
67         </div>
68       </div>
69
70       <div class="form-group">
71         <div class="row">
72           <div class="col-md-3"><label class="dl-emphasis1"
73                                        for="inputUserName">{{ "AUTHENTICATION" | translate}}</label></div>
74           <div class="col-sm-4">
75             <input [(ngModel)]="this.tempDb.login" class="form-control dl-input-text" id="inputUserName" type="text"
76                    placeholder="{{ 'Username' | translate}}" [disabled]="!this.tempDb.enabled" [attr.disabled]='!this.tempDb.enabled?true:undefined'>
77           </div>
78           <div class="col-sm-4">
79             <input [(ngModel)]="this.tempDb.pass" class="form-control dl-input-text" id="inputPass" type="password"
80                    placeholder=" {{ 'Password' | translate}}" [disabled]="!this.tempDb.enabled" [attr.disabled]='!this.tempDb.enabled?true:undefined'>
81           </div>
82         </div>
83       </div>
84
85       <div class="form-group">
86         <div class="row">
87           <div class="col-md-3"><label class="dl-emphasis1" for="inputEnabled">{{ "Enabled" | translate}}</label></div>
88           <div class="col-md-3">
89             <div class="input-group">
90               <div class="input-group-prepend">
91                 <label class="input-group-text dl-input-chk-label">
92                   <input id="chkSsl" [(ngModel)]="this.tempDb.enabled" type="checkbox" />
93                   <span class="dl-input-checkmark"></span>
94                 </label>
95               </div>
96               <label class="form-control dl-input-chk" for="chkSsl">
97                 Enable
98               </label>
99             </div>
100           </div>
101         </div>
102       </div>
103
104     </div>
105   </div>
106
107
108   <div class="modal-footer border-0 pt-0 pb-2">
109     <div class="container">
110       <div class="row">
111         <div class="col-md-6 p-0">
112
113         </div>
114         <div class="col-md-3 p-1">
115           <span>
116             <button type="button" class="btn dl-btn-dark btn-block" (click)="this.passBack()">
117               {{ "Save" | translate}}
118             </button>
119           </span>
120         </div>
121         <div class="col-md-3 p-1">
122           <span>
123             <button type="button" class="btn dl-btn-light btn-block" (click)="activeModal.close('Close click')">
124                {{ "Cancel" | translate}}
125             </button>
126           </span>
127         </div>
128       </div>
129     </div>
130   </div>
131 </div>