Stone, Avi (as206k) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 1 | <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) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 3 | |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 4 | <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) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 7 | <span style="width: 100%; |
Stone, Avi (as206k) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 8 | color:#5a5a5a; |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 9 | height: 100%; |
| 10 | display: flex; |
| 11 | justify-content: center; |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 12 | align-items: center;" |
| 13 | [innerHTML]="'upload' | feather:20"></span> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 14 | </button> |
| 15 | <hr> |
| 16 | |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 17 | <button mat-icon-button (click)="enableImports()" data-tests-id="import-rules" pTooltip="Import" tooltipPosition="top"> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 18 | <span style="width: 100%; |
Stone, Avi (as206k) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 19 | color:#5a5a5a; |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 20 | height: 100%; |
| 21 | display: flex; |
| 22 | justify-content: center; |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 23 | align-items: center;" |
| 24 | [innerHTML]="'download' | feather:20"></span> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 25 | </button> |
| 26 | <hr> |
| 27 | </div> |
| 28 | |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 29 | <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) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 31 | <span style="width: 100%; |
Stone, Avi (as206k) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 32 | color:#5a5a5a; |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 33 | height: 100%; |
| 34 | display: flex; |
| 35 | justify-content: center; |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 36 | align-items: center;" |
| 37 | [innerHTML]="'settings' | feather:20"></span> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 38 | </button> |
| 39 | </div> |
| 40 | |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 41 | <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) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 47 | <!-- 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) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 53 | <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) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 61 | <input *ngIf="isPropertyDdl(prop) === dropDownTypes.none" type="text" name="{{prop.name}}" class="field-text" |
| 62 | [(ngModel)]="prop.value" (ngModelChange)="onChange($event)"> |
Stone, Avi (as206k) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 63 | |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 64 | <select *ngIf="isPropertyDdl(prop) === dropDownTypes.regularDDL" class="field-text" name="{{prop.name}}" |
| 65 | [(ngModel)]="prop.value" (ngModelChange)="onChange($event)"> |
Stone, Avi (as206k) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 66 | <option *ngFor="let value of prop.constraints[0].valid_values" [value]="value"> |
| 67 | {{value}} |
| 68 | </option> |
| 69 | </select> |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame^] | 70 | <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) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 72 | <option value="false"> |
| 73 | false |
| 74 | </option> |
| 75 | <option value="true"> |
| 76 | true |
| 77 | </option> |
| 78 | </select> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 79 | </div> |
| 80 | </form> |
| 81 | </div> |
| 82 | </div> |
| 83 | </div> |