module.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <style type="text/css">
  2. .table td.text {
  3. max-width: 177px;
  4. }
  5. .table td.text span {
  6. white-space: nowrap;
  7. overflow: hidden;
  8. text-overflow: ellipsis;
  9. display: inline-block;
  10. max-width: 100%;
  11. }
  12. </style>
  13. <div class="row" ng-controller="NotesController">
  14. <div class="col-md-12">
  15. <div class="panel panel-default">
  16. <div class="panel-heading">
  17. <h3 class="panel-title">
  18. MAC Notes
  19. <div class="btn-group pull-right">
  20. <button class="btn btn-default btn-xs btn-fixed-length" ng-click="downloadNotes()">Download</button>
  21. <button class="btn btn-default btn-xs btn-fixed-length" ng-click="getNotes()">Refresh</button>
  22. </div>
  23. </h3>
  24. </div>
  25. <div class="table-responsive table-dropdown" ng-show="macs.length">
  26. <table class="table table-hover">
  27. <thead>
  28. <tr>
  29. <th>Name</th>
  30. <th>MAC Address</th>
  31. <th>Note</th>
  32. <th>Delete</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <tr ng-repeat="mac in macs">
  37. <td>
  38. <span class="autoselect">
  39. {{ mac.name }}
  40. </span>
  41. </td>
  42. <td>
  43. <span class="autoselect">
  44. <hook-button disable="running && !paused" hook="mac" content="mac.key" probes="true" client="true"></hook-button>
  45. {{ mac.key }}
  46. </span>
  47. </td>
  48. <td class="text autoselect">
  49. <span class="autoselect">
  50. <i>{{ mac.note }}</i>
  51. </span>
  52. </td>
  53. <td>
  54. <button class="btn btn-default btn-xs" key="{{mac.key}}" ng-click="deleteNote($event)">Delete Note</button>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. </div>
  60. <div class="panel-body" ng-hide="macs.length">
  61. No MAC notes found.
  62. </div>
  63. </div>
  64. <div class="panel panel-default">
  65. <div class="panel-heading">
  66. <h3 class="panel-title">
  67. SSID Notes
  68. <div class="btn-group pull-right">
  69. <button class="btn btn-default btn-xs btn-fixed-length" ng-click="downloadNotes()">Download</button>
  70. <button class="btn btn-default btn-xs btn-fixed-length" ng-click="getNotes()">Refresh</button>
  71. </div>
  72. </h3>
  73. </div>
  74. <div class="table-responsive table-dropdown" ng-show="ssids.length">
  75. <table class="table table-hover">
  76. <thead>
  77. <tr>
  78. <th>Name</th>
  79. <th>SSID</th>
  80. <th>Note</th>
  81. <th>Delete</th>
  82. </tr>
  83. </thead>
  84. <tbody>
  85. <tr ng-repeat="ssid in ssids">
  86. <td>
  87. <span class="autoselect">
  88. {{ ssid.name }}
  89. </span>
  90. </td>
  91. <td>
  92. <span class="autoselect">
  93. <hook-button disable="running && !paused" hook="ssid" content="ssid.key" probes="true" client="false"></hook-button>
  94. {{ ssid.key }}
  95. </span>
  96. </td>
  97. <td class="text autoselect">
  98. <span class="autoselect">
  99. <i>{{ ssid.note }}</i>
  100. </span>
  101. </td>
  102. <td>
  103. <button class="btn btn-default btn-xs" key="{{ssid.key}}" ng-click="deleteNote($event)">Delete Note</button>
  104. </td>
  105. </tr>
  106. </tbody>
  107. </table>
  108. </div>
  109. <div class="panel-body" ng-hide="ssids.length">
  110. No SSID notes found.
  111. </div>
  112. </div>
  113. </div>
  114. </div>