summaryrefslogtreecommitdiffstats
path: root/components/datalake-handler/admin/src/src/app/database/database-list/dbs-modal/druid/druid.component.html
blob: 5d5a38cfe2eb9558e77a11443dcd0c26571213f2 (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!--
============LICENSE_START=======================================================
ONAP : DataLake
================================================================================
Copyright 2019 QCT
=================================================================================
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="p-1">
  <div class="modal-header pb-0 border-0">
    <div class="container">
      <div class="row">
        <div class="col-md-12">
          <label class="dl-h3">OLAP store | Druid</label>
          <i class="fas fa-plus fa-2x close-btn-icon" (click)="activeModal.close('Close click')"></i>
        </div>
      </div>

      <div class="row">
        <div class="col-md-12">
          <hr>
        </div>
      </div>
    </div>
  </div>

  <div class="modal-body border-0 ml-4 mr-4">
    <div class="container">

      <!--<div class="form-group">-->
        <!--<div class="row">-->
          <!--<div class="col-md-3"><label class="dl-emphasis1" for="inputBucket">Database</label></div>-->
          <!--<div class="col-md-4">-->
            <!--<input [(ngModel)]="this.tempDb.database" class="form-control dl-input-text" id="inputBucket" type="text"-->
              <!--placeholder="">-->
          <!--</div>-->
        <!--</div>-->
      <!--</div>-->

      <div class="form-group">
        <div class="row">
          <div class="col-md-3"><label class="dl-emphasis1" for="inputHost">{{ "HOST" | translate}}</label></div>
          <div class="col-md-4">
            <input [(ngModel)]="this.tempDb.host" class="form-control dl-input-text" id="inputHost" type="text"
              placeholder="">
          </div>
        </div>
      </div>

      <div class="form-group">
        <div class="row">
          <div class="col-md-3"><label class="dl-emphasis1" for="inputPort">{{ "PORT" | translate}}</label></div>
          <div class="col-md-2">
            <input [(ngModel)]="this.tempDb.port" class="form-control dl-input-text" id="inputPort" type="text"
              placeholder="Default" (input)="this.adminService.onKeyPressNumber($event)">
          </div>
        </div>
      </div>

      <div class="form-group">
        <div class="row">
          <div class="col-md-3"><label class="dl-emphasis1"
              for="inputUserName">{{ "AUTHENTICATION" | translate}}</label></div>
          <div class="col-sm-4">
            <input [(ngModel)]="this.tempDb.login" class="form-control dl-input-text" id="inputUserName" type="text"
              placeholder="Username">
          </div>
          <div class="col-sm-4">
            <input [(ngModel)]="this.tempDb.pass" class="form-control dl-input-text" id="inputPass" type="password"
              placeholder="Password">
          </div>
        </div>
      </div>

      <div class="form-group">
        <div class="row">
          <div class="col-md-3"><label class="dl-emphasis1" for="switchs">{{ "ENABLE_SSL" | translate}}</label></div>
          <div class="col-md-3">
            <div class="input-group">
              <div class="input-group-prepend">
                <label class="dl-switch">
                  <input id="switchs" type="checkbox" [(ngModel)]="this.tempDb.encrypt" />
                  <span class="dl-slider round"></span>
                </label>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="form-group">
        <div class="row">
          <div class="col-md-3"><label class="dl-emphasis1" for="switch">{{ "Enabled" | translate}}</label></div>
          <div class="col-md-3">
            <div class="input-group">
              <div class="input-group-prepend">
                <label class="dl-switch">
                  <input id="switch" type="checkbox" [(ngModel)]="this.tempDb.enabled" />
                  <span class="dl-slider round"></span>
                </label>
              </div>
            </div>
          </div>
        </div>
      </div>

    </div>
  </div>


  <div class="modal-footer border-0 pt-0 pb-2">
    <div class="container">
      <div class="row">
        <div class="col-md-6 p-0">

        </div>
        <div class="col-md-3 p-1">
          <span>
            <button type="button" class="btn dl-btn-dark btn-block" (click)="this.passBack()">
              Save
            </button>
          </span>
        </div>
        <div class="col-md-3 p-1">
          <span>
            <button type="button" class="btn dl-btn-light btn-block" (click)="activeModal.close('Close click')">
              Cancel
            </button>
          </span>
        </div>
      </div>
    </div>
  </div>
</div>