adjuster.directive.html 1.1 KB

1234567891011121314151617181920212223242526
  1. <div class="card card-default mainpanel">
  2. <hs.layout.panel-header panel-name="adjuster" panel-title="'Adjust factors'||translate"></hs.layout.panel-header>
  3. <style>
  4. .weather-table>tbody>tr>td,
  5. .table-condensed>tbody>tr>th,
  6. .table-condensed>tfoot>tr>td,
  7. .table-condensed>tfoot>tr>th,
  8. .table-condensed>thead>tr>td,
  9. .table-condensed>thead>tr>th {
  10. padding: 2px;
  11. }
  12. </style>
  13. <div class="card-body">
  14. <div class="card-body">
  15. <div ng-repeat="factor in adjusterService.factors">
  16. <div class="d-flex flex-row">
  17. <div class="p-2 flex-grow-1">
  18. <label>{{factor.factor}}</label>
  19. </div>
  20. <div class="p-2">{{(factor.weight * 100).toFixed(0)}}%</div>
  21. </div>
  22. <input type="range" class="custom-range" ng-change="adjusterService.apply()" ng-model="factor.weight" min="0" max="1.0" step="0.05">
  23. </div>
  24. </div>
  25. </div>
  26. </div>