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;"> |
Manor, Yanir (ym903w) | a0c5a22 | 2018-10-21 11:00:42 +0300 | [diff] [blame] | 6 | <button mat-icon-button (click)="downloadRules()" pTooltip="Export" tooltipPosition="top" [disabled]="store.ruleList.length === 0"> |
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) | a0c5a22 | 2018-10-21 11:00:42 +0300 | [diff] [blame] | 17 | <button mat-icon-button (click)="enableImports()" data-tests-id="import-rules" pTooltip="Import" tooltipPosition="top" [disabled]="store.viewOnly"> |
Eran (ev672n), Vosk | 2dbff5e | 2018-10-29 19:33:00 +0200 | [diff] [blame^] | 18 | <span [style.color]="store.expandImports[store.tabIndex] ? '#009FDB' : '#5a5a5a'" 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 | |
Eran (ev672n), Vosk | 2dbff5e | 2018-10-29 19:33:00 +0200 | [diff] [blame^] | 29 | <button mat-icon-button (click)="enableSetting()" data-tests-id="setting-gear" |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame] | 30 | pTooltip="Settings" tooltipPosition="top"> |
Eran (ev672n), Vosk | 2dbff5e | 2018-10-29 19:33:00 +0200 | [diff] [blame^] | 31 | <span [style.color]="this.store.expandAdvancedSetting[store.tabIndex] ? '#009FDB' : '#5a5a5a'" 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'"> |
Eran (ev672n), Vosk | 2dbff5e | 2018-10-29 19:33:00 +0200 | [diff] [blame^] | 50 | <div style="font-size: 1.5em; padding: 0 12px;"> |
| 51 | {{tabName}} Advanced Settings |
| 52 | </div> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 53 | <form #cdumpConfForm="ngForm"> |
| 54 | <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] | 55 | <div style="display: flex;"> |
| 56 | <p class="field-label"> |
| 57 | {{prop.name}} |
| 58 | </p> |
| 59 | <span *ngIf="prop.description" class="help-description" style="padding-left: 5px;" [innerHTML]="'help-circle' | feather:14" |
| 60 | pTooltip="{{prop.description}}" tooltipPosition="top"></span> |
| 61 | </div> |
| 62 | |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame] | 63 | <input *ngIf="isPropertyDdl(prop) === dropDownTypes.none" type="text" name="{{prop.name}}" class="field-text" |
Manor, Yanir (ym903w) | a0c5a22 | 2018-10-21 11:00:42 +0300 | [diff] [blame] | 64 | [readonly]="store.viewOnly" [(ngModel)]="prop.value" (ngModelChange)="onChange($event)"> |
Stone, Avi (as206k) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 65 | |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame] | 66 | <select *ngIf="isPropertyDdl(prop) === dropDownTypes.regularDDL" class="field-text" name="{{prop.name}}" |
| 67 | [(ngModel)]="prop.value" (ngModelChange)="onChange($event)"> |
Stone, Avi (as206k) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 68 | <option *ngFor="let value of prop.constraints[0].valid_values" [value]="value"> |
| 69 | {{value}} |
| 70 | </option> |
| 71 | </select> |
Manor, Yanir (ym903w) | 22eda03 | 2018-09-20 14:18:38 +0300 | [diff] [blame] | 72 | <select *ngIf="isPropertyDdl(prop) === dropDownTypes.booleanDDL" class="field-text" name="{{prop.name}}" |
| 73 | [(ngModel)]="prop.value" (ngModelChange)="onChange($event)" data-tests-id="booleanDDL"> |
Stone, Avi (as206k) | 548c5a2 | 2018-06-03 13:12:12 +0300 | [diff] [blame] | 74 | <option value="false"> |
| 75 | false |
| 76 | </option> |
| 77 | <option value="true"> |
| 78 | true |
| 79 | </option> |
| 80 | </select> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 81 | </div> |
| 82 | </form> |
| 83 | </div> |
| 84 | </div> |
| 85 | </div> |