dropdown.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <div class="row pull-right">
  2. <div class="gf-timepicker-absolute-section">
  3. <h3>Time range</h3>
  4. <label class="small">From:</label>
  5. <div class="input-prepend">
  6. <input type="text" class="input-large" ng-model="ctrl.timeRaw.from" input-datetime>
  7. <button class="btn btn-primary" type="button" ng-click="openFromPicker=!openFromPicker">
  8. <i class="fa fa-calendar"></i>
  9. </button>
  10. </div>
  11. <div ng-if="openFromPicker">
  12. <datepicker ng-model="ctrl.absolute.fromJs" class="gf-timepicker-component" show-weeks="false" ng-change="ctrl.absoluteFromChanged()"></datepicker>
  13. </div>
  14. <label class="small">To:</label>
  15. <div class="input-prepend">
  16. <input type="text" class="input-large" ng-model="ctrl.timeRaw.to" input-datetime>
  17. <button class="btn btn-primary" type="button" ng-click="openToPicker=!openToPicker">
  18. <i class="fa fa-calendar"></i>
  19. </button>
  20. </div>
  21. <div ng-if="openToPicker">
  22. <datepicker ng-model="ctrl.absolute.toJs" class="gf-timepicker-component" show-weeks="false" ng-change="ctrl.absoluteToChanged()"></datepicker>
  23. </div>
  24. <label class="small">Refreshing every:</label>
  25. <select ng-model="ctrl.refresh.value" class='input-medium' ng-options="f.value as f.text for f in ctrl.refresh.options">
  26. </select>
  27. <button class="btn btn-inverse gf-timepicker-btn-apply" type="button" ng-click="ctrl.applyCustom()">
  28. Apply
  29. </button>
  30. </div>
  31. <div class="gf-timepicker-relative-section">
  32. <h3>Quick ranges</h3>
  33. <ul ng-repeat="group in ctrl.timeOptions">
  34. <li bindonce ng-repeat='option in group' ng-class="{active: option.active}">
  35. <a ng-click="ctrl.setRelativeFilter(option)" bo-text="option.display"></a>
  36. </li>
  37. </ul>
  38. </div>
  39. </div>
  40. <div class="clearfix"></div>