2 ============LICENSE_START=======================================================
4 ================================================================================
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
11 http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
22 <div class="modal-header pb-0 border-0">
23 <div class="container-fluid">
25 <div class="col-md-12">
26 <label class="dl-h3">{{ "DEFAULT_CONFIGURATIONS" | translate }}</label>
31 <div class="col-md-12">
38 <div class="modal-body border-0">
39 <div class="container-fluid">
40 <div class="form-group">
42 <div class="col-md-4"><label class="dl-emphasis1">{{ 'STATUS' | translate }}</label></div>
44 <div class="col-md-8">
45 <label class="dl-switch">
46 <input id="switch" type="checkbox" [(ngModel)]="tempEnabled" />
47 <span class="dl-slider round"></span>
53 <div class="form-group">
55 <div class="col-md-12">
56 <label class="dl-emphasis1" for="inputUserName">{{ 'AUTHENTICATION' | translate }}</label>
60 <div class="col-md-6">
61 <input #t_login [value]="topic.login" class="form-control dl-input-text" id="inputUserName" type="text"
62 placeholder="Username" />
64 <div class="col-md-6">
65 <input #t_password [value]="topic.password" class="form-control dl-input-text" id="inputPass"
66 type="password" placeholder="Password" />
71 <div class="form-group">
73 <div class="col-md-6">
74 <label class="dl-emphasis1">{{ 'DATA_FORMAT' | translate }}</label>
76 <div class="col-md-6">
77 <label class="dl-emphasis1">{{ 'TTL' | translate }} (days)</label>
81 <div class="col-md-6">
82 <select #t_dataFormat class="custom-select dl-input-text" id="selDataFormat">
83 <option *ngFor="let item of dataFormats" [selected]="item == topic.dataFormat">
87 <div class="col-md-6">
88 <input #t_ttl [value]="topic.ttl" class="form-control dl-input-text" id="inputTtl" type="text"
89 placeholder="3650" (input)="this.adminService.onKeyPressNumber($event)" />
94 <div class="form-group">
96 <div class="col-md-12"><label class="dl-emphasis1">{{ 'SINK' | translate }}</label></div>
98 <div class="row d-flex flex-wrap">
99 <div *ngFor="let db of dbs" class="col-md-6 pb-1">
100 <div class="input-group">
101 <div class="input-group-prepend">
102 <label class="input-group-text dl-input-chk-label">
103 <input id="chk_{{ db }}" type="checkbox" [checked]="this.topic.sinkdbs.includes(db)"
104 (click)="this.updateSelectedDB($event, db)" />
105 <span class="dl-input-checkmark"></span>
108 <label class="form-control dl-input-chk" for="chk_{{ db }}">
116 <div class="form-group">
118 <div class="col-md-12">
119 <label class="dl-emphasis1">{{ 'SAVE_RAW_DATA' | translate }}</label>
123 <div class="col-md-6">
124 <div class="input-group">
125 <div class="input-group-prepend">
126 <label class="input-group-text dl-input-chk-label">
127 <input id="chkSaveRaw" [(ngModel)]="tempSaveRaw" type="checkbox" />
128 <span class="dl-input-checkmark"></span>
131 <label class="form-control dl-input-chk" for="chkSaveRaw">
140 <div class="modal-footer border-0 pt-0 pb-2">
141 <div class="container-fluid">
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')">