blob: bf201bee5df40f046ebf52f92d99f2e371787d5d [file] [log] [blame]
Stone, Avi (as206k)548c5a22018-06-03 13:12:12 +03001<div style="display: flex; position: relative; justify-content: flex-end;" class="bars">
2 <div style="display: flex; justify-content: flex-end; align-items:center;" [class]="genrateBarTestId()">
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +03003
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +03004 <div *ngIf="tabName.toLowerCase().includes('map') || tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp')"
5 style="display: flex; align-items: center;">
6 <button mat-icon-button (click)="downloadRules()" pTooltip="Export" tooltipPosition="top">
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +03007 <span style="width: 100%;
Stone, Avi (as206k)548c5a22018-06-03 13:12:12 +03008 color:#5a5a5a;
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +03009 height: 100%;
10 display: flex;
11 justify-content: center;
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +030012 align-items: center;"
13 [innerHTML]="'upload' | feather:20"></span>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030014 </button>
15 <hr>
16
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +030017 <button mat-icon-button (click)="enableImports()" data-tests-id="import-rules" pTooltip="Import" tooltipPosition="top">
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030018 <span style="width: 100%;
Stone, Avi (as206k)548c5a22018-06-03 13:12:12 +030019 color:#5a5a5a;
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030020 height: 100%;
21 display: flex;
22 justify-content: center;
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +030023 align-items: center;"
24 [innerHTML]="'download' | feather:20"></span>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030025 </button>
26 <hr>
27 </div>
28
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +030029 <button mat-icon-button (click)="enableSetting()" data-tests-id="setting-gear" [style.color]="this.store.expandAdvancedSetting[store.tabIndex] ? '#009FDB' : 'black'"
30 pTooltip="Settings" tooltipPosition="top">
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030031 <span style="width: 100%;
Stone, Avi (as206k)548c5a22018-06-03 13:12:12 +030032 color:#5a5a5a;
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030033 height: 100%;
34 display: flex;
35 justify-content: center;
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +030036 align-items: center;"
37 [innerHTML]="'settings' | feather:20"></span>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030038 </button>
39 </div>
40
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +030041 <div *ngIf="tabName.toLowerCase().includes('map') || tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp')">
42 <div class="import" [style.display]="!store.expandImports[store.tabIndex] ? 'none' : 'block'">
43 <app-import-rules></app-import-rules>
44 </div>
45 </div>
46
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030047 <!-- advanced setting -->
48 <div class="setting" *ngIf="store.expandAdvancedSetting[store.tabIndex]">
49 <div *mobxAutorun style="width: 100%;" [class]="tabName+'-setting-list'">
50 <div style="font-size: 1.5em; padding: 0 12px;">{{tabName}} Advanced Setting</div>
51 <form #cdumpConfForm="ngForm">
52 <div *ngFor="let prop of store.configurationForm" class="field" [id]="prop.name">
Stone, Avi (as206k)548c5a22018-06-03 13:12:12 +030053 <div style="display: flex;">
54 <p class="field-label">
55 {{prop.name}}
56 </p>
57 <span *ngIf="prop.description" class="help-description" style="padding-left: 5px;" [innerHTML]="'help-circle' | feather:14"
58 pTooltip="{{prop.description}}" tooltipPosition="top"></span>
59 </div>
60
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +030061 <input *ngIf="isPropertyDdl(prop) === dropDownTypes.none" type="text" name="{{prop.name}}" class="field-text"
62 [(ngModel)]="prop.value" (ngModelChange)="onChange($event)">
Stone, Avi (as206k)548c5a22018-06-03 13:12:12 +030063
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +030064 <select *ngIf="isPropertyDdl(prop) === dropDownTypes.regularDDL" class="field-text" name="{{prop.name}}"
65 [(ngModel)]="prop.value" (ngModelChange)="onChange($event)">
Stone, Avi (as206k)548c5a22018-06-03 13:12:12 +030066 <option *ngFor="let value of prop.constraints[0].valid_values" [value]="value">
67 {{value}}
68 </option>
69 </select>
Manor, Yanir (ym903w)22eda032018-09-20 14:18:38 +030070 <select *ngIf="isPropertyDdl(prop) === dropDownTypes.booleanDDL" class="field-text" name="{{prop.name}}"
71 [(ngModel)]="prop.value" (ngModelChange)="onChange($event)" data-tests-id="booleanDDL">
Stone, Avi (as206k)548c5a22018-06-03 13:12:12 +030072 <option value="false">
73 false
74 </option>
75 <option value="true">
76 true
77 </option>
78 </select>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030079 </div>
80 </form>
81 </div>
82 </div>
83</div>