module.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <div class="editor-row">
  2. <h5 class="section-heading">
  3. Drilldown / detail link<tip>These links appear in the dropdown menu in the panel menu. </tip></h5>
  4. </h5>
  5. <div ng-repeat="link in panel.links" style="margin-top: 20px;">
  6. <div class="gf-form-group">
  7. <div class="gf-form-inline">
  8. <div class="gf-form width-2">
  9. <i class="fa fa-fw fa-unlink"></i>
  10. </div>
  11. <div class="gf-form">
  12. <span class="gf-form-label width-7">Type</span>
  13. <div class="gf-form-select-wrapper width-14">
  14. <select class="gf-form-input" ng-model="link.type" ng-options="f for f in ['dashboard','absolute']"></select>
  15. </div>
  16. </div>
  17. <div class="gf-form">
  18. <span class="gf-form-label width-7" ng-show="link.type === 'dashboard'">Dashboard</span>
  19. <input ng-show="link.type === 'dashboard'" type="text" ng-model="link.dashboard" bs-typeahead="searchDashboards" class="gf-form-input max-width-14" ng-blur="dashboardChanged(link)">
  20. <span class="gf-form-label width-7" ng-show="link.type === 'absolute'">Url</span>
  21. <input ng-show="link.type === 'absolute'" type="text" ng-model="link.url" class="gf-form-input max-width-14">
  22. </div>
  23. <div class="gf-form">
  24. <button class="btn-inverse gf-form-btn btn-small" ng-click="deleteLink(link)"><i class="fa fa-trash"></i></button>
  25. </div>
  26. </div>
  27. <div class="gf-form-inline">
  28. <div class="gf-form width-2">
  29. <i class="fa fa-fw fa-unlink invisible"></i>
  30. </div>
  31. <div class="gf-form">
  32. <div class="gf-form-label width-7">Title</div>
  33. <input type="text" ng-model="link.title" class="gf-form-input">
  34. </div>
  35. <div class="gf-form">
  36. <span class="gf-form-label width-7">Url params</span>
  37. <input type="text" ng-model="link.params" class="gf-form-input">
  38. </div>
  39. </div>
  40. <div class="gf-form-inline">
  41. <div class="gf-form width-2">
  42. <i class="fa fa-fw fa-unlink invisible"></i>
  43. </div>
  44. <div class="gf-form">
  45. <editor-checkbox text="Keep current time range" model="link.keepTime"></editor-checkbox>
  46. <editor-checkbox text="Add current variable values" model="link.includeVars"></editor-checkbox>
  47. <editor-checkbox text="Open in new tab " model="link.targetBlank"></editor-checkbox>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="editor-row">
  54. <button class="btn btn-inverse" ng-click="addLink()"><i class="fa fa-plus"></i> Add link</button>
  55. </div>