submenu.html 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <div class="submenu-controls gf-form-query">
  2. <ul ng-if="ctrl.dashboard.templating.list.length > 0">
  3. <li ng-repeat="variable in ctrl.variables" ng-hide="variable.hide === 2" class="submenu-item gf-form-inline">
  4. <div class="gf-form">
  5. <label class="gf-form-label template-variable" ng-hide="variable.hide === 1">
  6. {{variable.label || variable.name}}:
  7. </label>
  8. <value-select-dropdown ng-if="variable.type !== 'adhoc'" variable="variable" on-updated="ctrl.variableUpdated(variable)" get-values-for-tag="ctrl.getValuesForTag(variable, tagKey)"></value-select-dropdown>
  9. </div>
  10. <ad-hoc-filters ng-if="variable.type === 'adhoc'" variable="variable"></ad-hoc-filters>
  11. </li>
  12. </ul>
  13. <ul ng-if="ctrl.dashboard.annotations.list.length > 0">
  14. <li ng-repeat="annotation in ctrl.dashboard.annotations.list" class="submenu-item annotation-segment" ng-class="{'annotation-disabled': !annotation.enable}">
  15. <a ng-click="ctrl.disableAnnotation(annotation)">
  16. <i class="fa fa-bolt" style="color:{{annotation.iconColor}}"></i>
  17. {{annotation.name}}
  18. <input class="cr1" id="hideYAxis" type="checkbox" ng-model="annotation.enable" ng-checked="annotation.enable">
  19. <label for="hideYAxis" class="cr1"></label>
  20. </a>
  21. </li>
  22. </ul>
  23. <ul class="pull-right" ng-if="ctrl.dashboard.links.length > 0">
  24. <dash-links-container links="ctrl.dashboard.links"></dash-links-container>
  25. </ul>
  26. <div class="clearfix"></div>
  27. </div>