dropdown.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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="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="absolute.to" class="gf-timepicker-component" show-weeks="false"></datepicker>
  13. </div>
  14. <label class="small">To:</label>
  15. <div class="input-prepend">
  16. <input type="text" class="input-large" ng-model="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. <label class="small">Refreshing every:</label>
  22. <select ng-model="currentRefresh" class='input-large' ng-options="f for f in refreshOptions"></select>
  23. <button class="btn btn-inverse pull-right" type="button" ng-click="applyCustomTimeRange()">
  24. Apply
  25. </button>
  26. </div>
  27. <div class="gf-timepicker-relative-section">
  28. <h3>Quick ranges</h3>
  29. <ul ng-repeat="group in timeOptions">
  30. <li bindonce ng-repeat='option in group' ng-class="{active: option.active}">
  31. <a ng-click="ctrl.setRelativeFilter(option)" bo-text="option.display"></a>
  32. </li>
  33. </ul>
  34. </div>
  35. </div>
  36. <div class="clearfix"></div>
  37. <!-- <tabset> -->
  38. <!-- <tab heading="Relative"> -->
  39. <!-- -->
  40. <!-- <div style="float:right; width: 200px" ng&#45;repeat="group in timeOptions"> -->
  41. <!-- <ul> -->
  42. <!-- <li bindonce ng&#45;repeat='option in group'> -->
  43. <!-- <a ng&#45;click="ctrl.setRelativeFilter(option)" bo&#45;text="option.display"></a> -->
  44. <!-- </li> -->
  45. <!-- </ul> -->
  46. <!-- </div> -->
  47. <!-- -->
  48. <!-- </tab> -->
  49. <!-- <tab heading="Absolute"> -->
  50. <!-- -->
  51. <!-- <form name="timeForm" style="margin: 0 20px 20px 20px"> -->
  52. <!-- <div class="gf&#45;timepicker&#45;section"> -->
  53. <!-- <div> -->
  54. <!-- <div class="tight&#45;form last"> -->
  55. <!-- </div> -->
  56. <!-- <label class="small">From:</label> -->
  57. <!-- <input type="text" required class="input&#45;large" ng&#45;model="absolute.from" input&#45;datetime="MMMM Do YYYY, HH:mm:ss.SSS"> -->
  58. <!-- <br> -->
  59. <!-- </div> -->
  60. <!-- <datepicker ng&#45;model="absolute.from" class="gf&#45;timepicker&#45;component" show&#45;weeks="false"></datepicker> -->
  61. <!-- </div> -->
  62. <!-- <div class="gf&#45;timepicker&#45;section"> -->
  63. <!-- <div> -->
  64. <!-- <label class="small">To:</label> -->
  65. <!-- <input type="text" required class="input&#45;large" ng&#45;model="absolute.to" input&#45;datetime="MMMM Do YYYY, HH:mm:ss.SSS"> -->
  66. <!-- <br> -->
  67. <!-- </div> -->
  68. <!-- <datepicker ng&#45;model="absolute.to" class="gf&#45;timepicker&#45;component" show&#45;weeks="false"></datepicker> -->
  69. <!-- </div> -->
  70. <!-- <div class="clearfix"></div> -->
  71. <!-- </form> -->
  72. <!-- </tab> -->
  73. <!-- </tabset> -->
  74. <!-- -->
  75. <!-- <!&#45;&#45; <!&#38;#45;&#38;#45; Auto refresh submenu &#38;#45;&#38;#45;> &#45;&#45;> -->
  76. <!-- <li class="dropdown&#45;submenu"> -->
  77. <!-- <a href="#">Auto&#45;Refresh</a> -->
  78. <!-- <ul class="dropdown&#45;menu" ng&#45;class="{'dropdown&#45;submenu&#45;left': refreshMenuLeftSide}"> -->
  79. <!-- <li> -->
  80. <!-- <a ng&#45;click="timeSrv.set_interval(false)">Off</a> -->
  81. <!-- </li> -->
  82. <!-- <li bindonce ng&#45;repeat="interval in panel.refresh_intervals track by $index"> -->
  83. <!-- <a ng&#45;click="timeSrv.set_interval(interval)" bo&#45;text="'Every ' + interval"></a> -->
  84. <!-- </li> -->
  85. <!-- </ul> -->
  86. <!-- </li> -->
  87. <!-- <li><a ng&#45;click="ctrl.customTime()">Custom</a></li> -->
  88. <!-- </div> -->