summaryrefslogtreecommitdiffstats
path: root/public/src/app/import-rules/import-rules.component.html
blob: 80ae78bd4f63669db62bca0a66142f3023c7c47a (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
<div data-tests-id="import-rules-container">

  <div>
    <div style="font-size: 20px; margin-bottom:13px;">
      Import
    </div>
    <div style="display: flex; margin-bottom: 16px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #e0e0e0;">
      <span style="padding-left: 5px; padding-right: 10px; color:#5a5a5a;" [innerHTML]="'info' | feather:20"></span>
      <div>
        <div>
          To import rules created in Map-Rule-Engine,
        </div>
        <div>
          use the import phase button within a map-phase
        </div>
      </div>
    </div>
  </div>

  <div style="display:flex; flex-direction:column;">
    <span class="field-label required space-down" style="margin-right: 10px; color: #5a5a5a; font-size:12px;">Mapping
      Target</span>

    <select name="mappingTargetForImport" [(ngModel)]="mappingTarget" (ngModelChange)="onChangeMapping($event)"
      data-tests-id="mappingDdl" style="width: 416px;
      height: 35px;
      margin-bottom:17px;
      border-radius: 2px;
      background-color: #ffffff;
      border: solid 1px #d2d2d2;"
      class="field-select">
      <option [ngValue]="null" disabled>Select Mapping</option>
      <optgroup label="Rules Configured">
        <option *ngFor="let target of store.advancedSetting" [hidden]="!target.isExist" [value]="target.name" data-tests-id="templateOptionsExist">{{target.name}}</option>
      </optgroup>
      <optgroup label="No Mapping Configuration">
        <option *ngFor="let target of store.advancedSetting" [hidden]="target.isExist" [value]="target.name" data-tests-id="templateOptionsNotExist">{{target.name}}</option>
      </optgroup>
    </select>
  </div>

  <div style="margin-bottom:17px;">
    <div style="font-size: 12px; color: #5a5a5a;">
      Selected file
    </div>
    <div class="import-container">
      <input type="text" class="field-text" [(ngModel)]="fileName" readonly style="width: 300px;
          height: 35px;
          border-radius: 2px;
          margin-right: 20px;
          background-color: #ffffff;
          border: solid 1px #d2d2d2;">
      <button mat-raised-button style="border: 1px solid #009fdb; color:#009fdb; font-size: 14px; font-family: 'Open Sans', sans-serif;text-align: center; height: 36px; width: 96px;">
        Browse
      </button>
      <input type="file" id="importMC" accept=".json" #fileInput (change)="handleFileInput($event.target.files)">
    </div>
  </div>

</div>