2 Copyright (C) 2019 CMCC, Inc. and others. All rights reserved.
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
17 <div class="modal-header pb-0 border-0">
18 <div class="container-fluid">
20 <div class="col-md-12">
21 <label class="dl-h3">{{ this.dbInputTitle }}</label>
25 <div class="col-md-12">
32 <div class="modal-body border-0">
33 <div class="container">
35 <div class="form-group row row-wrapper">
36 <div class="row-half-item usual-item">
38 <label class="dl-emphasis1" >{{ 'NAME' | translate }}</label>
41 <input [(ngModel)]="this.dbInput.name" class="form-control dl-input-text input_style" placeholder="" type="text"/>
45 <div class="row-half-item usual-item">
47 <label class="dl-emphasis1" >{{ 'STATUS' | translate }}</label>
50 <label class="dl-switch">
51 <input [(ngModel)]="this.dbInput.enabled" id="switch" type="checkbox" />
52 <span class="dl-slider round"></span>
58 <div class="form-group row row-wrapper">
59 <div class="row-half-item usual-item">
61 <label class="dl-emphasis1" >{{ 'HOST' | translate }}</label>
64 <input [(ngModel)]="this.dbInput.host" class="form-control dl-input-text input_style" type="text" placeholder="" required="required" />
68 <div class="row-half-item usual-item">
70 <label class="dl-emphasis1" >{{ 'PORT' | translate }}</label>
73 <input [(ngModel)]="this.dbInput.port" class="form-control dl-input-text input_style" type="text" placeholder="" required="required" />
78 <div class="form-group row row-wrapper">
79 <div class="row-half-item usual-item">
81 <label class="dl-emphasis1" >{{ 'Username' | translate }}</label>
84 <input [(ngModel)]="this.dbInput.login" class="form-control dl-input-text input_style" type="text" placeholder="" required="required" />
88 <div class="row-half-item usual-item">
90 <label class="dl-emphasis1" >{{ 'Password' | translate }}</label>
93 <input [(ngModel)]="this.dbInput.pass" class="form-control dl-input-text input_style" type="text" placeholder="" required="required" />
98 <div class="form-group row row-wrapper">
99 <div class="row-half-item usual-item">
101 <label class="dl-emphasis1">{{ 'SECURE_COMMUNICATION' | translate }}</label>
103 <div class="input-group" style="width: 120px">
104 <label class="input-group-text dl-input-chk-label">
105 <input [(ngModel)]="this.dbInput.encrypt" id="chkSaveRaw" type="checkbox" />
106 <span class="dl-input-checkmark"></span>
108 <label class="form-control dl-input-chk" for="chkSaveRaw">
114 <div class="row-half-item usual-item">
116 <label class="dl-emphasis1" >{{ 'DB_TYPE' | translate }}</label>
119 <select #d_dbTypeId class="custom-select dl-input-text input_style" disabled>
120 <option *ngFor="let item of this.dbTypeIdList" [selected]="item == this.defaultDbType">{{ item }}</option>
126 <div class="form-group row row-wrapper">
127 <div class="row-half-item usual-item">
129 <label class="dl-emphasis1" >{{ 'DATABASE' | translate }}</label>
132 <input [(ngModel)]="this.dbInput.database" class="form-control dl-input-text input_style" type="text" required="required" />
140 <div class="modal-footer border-0 pt-0 pb-2">
141 <div class="container">
143 <div class="col-md-6 p-0">
146 <div class="col-md-3 p-1">
148 <button type="button" class="btn dl-btn-dark btn-block" (click)="this.passBack()">
153 <div class="col-md-3 p-1">
155 <button type="button" class="btn dl-btn-light btn-block" (click)="activeModal.close('Close click')">