ds_list.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <navbar
  2. title="Data Sources"
  3. title-url="datasources"
  4. icon="icon-gf icon-gf-datasources">
  5. </navbar>
  6. <div class="page-container">
  7. <div class="page-header">
  8. <h1>Data Sources</h1>
  9. <a class="btn btn-success" href="datasources/new">
  10. <i class="fa fa-plus"></i>
  11. Add data source
  12. </a>
  13. </div>
  14. <section class="card-section" layout-mode>
  15. <layout-selector></layout-selector>
  16. <ol class="card-list" >
  17. <li class="card-item-wrapper" ng-repeat="ds in ctrl.datasources">
  18. <div class="card-item" >
  19. <div class="card-item-header">
  20. <i class="icon-gf icon-gf-{{ds.type}}"></i>
  21. {{ds.type}}
  22. </div>
  23. <div class="card-item-body">
  24. <a href="datasources/edit/{{ds.id}}">
  25. <figure class="card-item-figure">
  26. <img ng-src="{{ds.typeLogoUrl}}">
  27. </figure>
  28. </a>
  29. <div class="card-item-details">
  30. <a class="card-item-name" href="datasources/edit/{{ds.id}}/">{{ds.name}}</a>
  31. <div class="card-item-sub-name">{{ds.url}}</div>
  32. </div>
  33. </div>
  34. </div>
  35. </li>
  36. </ol>
  37. </section>
  38. <div ng-if="ctrl.datasources.length === 0">
  39. <em>No data sources defined</em>
  40. </div>
  41. <table class="filter-table" ng-if="ctrl.datasources.length > 0">
  42. <thead>
  43. <tr>
  44. <th><strong>name</strong></th>
  45. <th><strong>type</strong></th>
  46. <th><strong>url</strong></th>
  47. <th style="width: 60px;"></th>
  48. <th style="width: 85px;"></th>
  49. <th style="width: 44px;"></th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. <tr ng-repeat="ds in ctrl.datasources">
  54. <td>
  55. <a href="datasources/edit/{{ds.id}}">
  56. <i class="icon-gf inline-icon-gf icon-gf-datasources"></i> &nbsp; {{ds.name}}
  57. </a>
  58. </td>
  59. <td>
  60. <span>{{ds.type}}</span>
  61. </td>
  62. <td>
  63. <span>{{ds.url}}</span>
  64. </td>
  65. <td class="text-center">
  66. <span ng-if="ds.isDefault">
  67. <span class="btn btn-secondary btn-mini">default</span>
  68. </span>
  69. </td>
  70. <td class="text-right">
  71. <a href="datasources/edit/{{ds.id}}" class="btn btn-inverse btn-small">
  72. <i class="fa fa-edit"></i>
  73. Edit
  74. </a>
  75. </td>
  76. <td class="text-right">
  77. <a ng-click="ctrl.removeDataSource(ds)" class="btn btn-danger btn-small">
  78. <i class="fa fa-remove"></i>
  79. </a>
  80. </td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </div>
  85. </div>