submenu.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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">
  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. <span ng-if="variable.type === 'adhoc'">
  11. <div class="gf-form">
  12. <label class="gf-form-label">hostname</label>
  13. <label class="gf-form-label query-operator">=</label>
  14. <label class="gf-form-label">server1</label>
  15. </div>
  16. </span>
  17. </li>
  18. </ul>
  19. <ul ng-if="ctrl.dashboard.annotations.list.length > 0">
  20. <li ng-repeat="annotation in ctrl.dashboard.annotations.list" class="submenu-item annotation-segment" ng-class="{'annotation-disabled': !annotation.enable}">
  21. <a ng-click="ctrl.disableAnnotation(annotation)">
  22. <i class="fa fa-bolt" style="color:{{annotation.iconColor}}"></i>
  23. {{annotation.name}}
  24. <input class="cr1" id="hideYAxis" type="checkbox" ng-model="annotation.enable" ng-checked="annotation.enable">
  25. <label for="hideYAxis" class="cr1"></label>
  26. </a>
  27. </li>
  28. </ul>
  29. <ul class="pull-right" ng-if="ctrl.dashboard.links.length > 0">
  30. <dash-links-container links="ctrl.dashboard.links"></dash-links-container>
  31. </ul>
  32. <div class="clearfix"></div>
  33. </div>