submenu.html 1.3 KB

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