list.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {% extends "portal/layout.html" %}
  2. {% block content %}
  3. <div class="panel panel-default">
  4. <!-- Default panel contents -->
  5. <div class="panel-heading" style="padding-left: 8px;">plugins</div>
  6. <div class="panel-body" style="padding-left: 8px;">
  7. <span class="green">{{ group.grp_name }}</span>
  8. binding
  9. <span class="glyphicon glyphicon-pushpin"></span>
  10. </div>
  11. <!-- Table -->
  12. <table class="table table-hover table-bordered table-striped" style="margin-bottom: 0px; margin-top: 0px;">
  13. <thead>
  14. <tr>
  15. <th>plugin dir</th>
  16. <th>creator</th>
  17. <th>operation</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. {% for v in plugins %}
  22. <tr>
  23. <td>
  24. {{ v.dir }}
  25. </td>
  26. <td>
  27. <a target="_blank"
  28. href="/user/about/{{ v.create_user }}">{{ v.create_user }}</a>
  29. </td>
  30. <td>
  31. <a href="javascript:unbind_plugin('{{ v.id }}');"
  32. style="text-decoration: none;">
  33. <span class="glyphicon glyphicon-trash orange"></span>
  34. </a>
  35. </td>
  36. </tr>
  37. {% else %}
  38. <tr>
  39. <td colspan="3">no records</td>
  40. </tr>
  41. {% endfor %}
  42. </tbody>
  43. </table>
  44. </div>
  45. <div class="form-inline mb20" role="form">
  46. <input type="text" placeholder="e.g. sys/ntp" class="form-control" id="plugin_dir"
  47. onkeydown="if(event.keyCode==13)bind_plugin('{{ group.id }}')">
  48. <button type="button" onclick="bind_plugin('{{ group.id }}');" class="btn btn-default">
  49. <span class="glyphicon glyphicon-plus"></span>
  50. Bind
  51. </button>
  52. <button type="button" onclick="history.go(-1);" class="btn btn-default">
  53. <span class="glyphicon glyphicon-arrow-left"></span>
  54. Back
  55. </button>
  56. </div>
  57. {% endblock %}