template.html 1.6 KB

123456789101112131415161718192021222324252627
  1. <div class="submenu-controls">
  2. <div ng-repeat="variable in ctrl.variables" ng-hide="variable.hide === 2" class="submenu-item gf-form-inline">
  3. <div class="gf-form">
  4. <label class="gf-form-label template-variable" ng-hide="variable.hide === 1">
  5. {{variable.label || variable.name}}
  6. </label>
  7. <value-select-dropdown ng-if="variable.type !== 'adhoc' && variable.type !== 'textbox'" variable="variable" on-updated="ctrl.variableUpdated(variable)"></value-select-dropdown>
  8. <input type="text" ng-if="variable.type === 'textbox'" ng-model="variable.query" class="gf-form-input width-12" ng-blur="variable.current.value != variable.query && variable.updateOptions() && ctrl.variableUpdated(variable);" ng-keydown="$event.keyCode === 13 && variable.current.value != variable.query && variable.updateOptions() && ctrl.variableUpdated(variable);" ></input>
  9. </div>
  10. <ad-hoc-filters ng-if="variable.type === 'adhoc'" variable="variable"></ad-hoc-filters>
  11. </div>
  12. <div ng-if="ctrl.dashboard.annotations.list.length > 0">
  13. <div ng-repeat="annotation in ctrl.dashboard.annotations.list" ng-hide="annotation.hide" class="submenu-item" ng-class="{'annotation-disabled': !annotation.enable}">
  14. <gf-form-switch class="gf-form" label="{{annotation.name}}" checked="annotation.enable" on-change="ctrl.annotationStateChanged()"></gf-form-switch>
  15. </div>
  16. </div>
  17. <div class="gf-form gf-form--grow">
  18. </div>
  19. <div ng-if="ctrl.dashboard.links.length > 0" >
  20. <dash-links-container links="ctrl.dashboard.links" dashboard="ctrl.dashboard" class="gf-form-inline"></dash-links-container>
  21. </div>
  22. <div class="clearfix"></div>
  23. </div>