module.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <div class="editor-row">
  2. <div class="gf-form-group" ng-repeat="link in panel.links">
  3. <div class="section">
  4. <div class="gf-form max-width-25">
  5. <span class="gf-form-label width-7">Type</span>
  6. <div class="gf-form-select-wrapper gf-form--grow">
  7. <select class="gf-form-input" ng-model="link.type" ng-options="f for f in ['dashboard','absolute']"></select>
  8. </div>
  9. </div>
  10. <div class="gf-form max-width-25">
  11. <span class="gf-form-label width-7" ng-show="link.type === 'dashboard'">Dashboard</span>
  12. <input ng-show="link.type === 'dashboard'" type="text" ng-model="link.dashboard" bs-typeahead="searchDashboards" class="gf-form-input" ng-blur="dashboardChanged(link)">
  13. <span class="gf-form-label width-7" ng-show="link.type === 'absolute'">Url</span>
  14. <input ng-show="link.type === 'absolute'" type="text" ng-model="link.url" class="gf-form-input max-width-14">
  15. </div>
  16. <div class="gf-form max-width-25">
  17. <div class="gf-form-label width-7">Title</div>
  18. <input type="text" ng-model="link.title" class="gf-form-input">
  19. </div>
  20. </div>
  21. <div class="section">
  22. <div class="gf-form">
  23. <span class="gf-form-label width-10">Url params</span>
  24. <input type="text" ng-model="link.params" class="gf-form-input width-10">
  25. </div>
  26. <gf-form-switch class="gf-form" label-class="width-10" label="Include time range" checked="link.keepTime"></gf-form-switch>
  27. <gf-form-switch class="gf-form" label-class="width-10" label="Include variables" checked="link.includeVars"></gf-form-switch>
  28. <gf-form-switch class="gf-form" label-class="width-10" label="Open in new tab " checked="link.targetBlank"></gf-form-switch>
  29. </div>
  30. <div class="section">
  31. <div class="gf-form">
  32. <button class="btn btn-inverse gf-form-btn" ng-click="deleteLink(link)"><i class="fa fa-trash"></i> Remove Link</button>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="editor-row">
  38. <button class="btn btn-inverse" ng-click="addLink()"><i class="fa fa-plus"></i> Add link</button>
  39. </div>