list.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {% extends "team/base.html" %}
  2. {%block head_js%}
  3. {{super()}}
  4. <script>
  5. $(function() {
  6. $("#query").keypress(function(e) {
  7. var key = e.which;
  8. if (key == 13) {
  9. query_team();
  10. }
  11. });
  12. });
  13. </script>
  14. {%endblock%}
  15. {% block container_outer %}
  16. <div id="container" class="container-fluid">
  17. <div class="row">
  18. <div class="col-md-12">
  19. <div style="margin: 0 auto; max-width: 500px;">
  20. <ol class="breadcrumb">
  21. <li class="active">用户组管理</li>
  22. </ol>
  23. <div class="form-inline mb20" role="form">
  24. <div class="form-group">
  25. <input type="text" value="{{query_term}}" class="form-control" id="query"
  26. placeholder="query name">
  27. </div>
  28. <button type="button" onclick="query_team();" class="btn btn-default">
  29. <span class="glyphicon glyphicon-search"></span>
  30. Search
  31. </button>
  32. <a href="/team/create" class="btn btn-default pull-right">
  33. <span class="glyphicon glyphicon-plus"></span>
  34. Add
  35. </a>
  36. </div>
  37. <div class="ts">
  38. {%for team in teams%}
  39. <div class="t">
  40. <div>
  41. <span class="glyphicon glyphicon-align-justify" style="font-size:9px;"></span>
  42. {{team.name}}
  43. <span class="gray" style="margin-right:10px;">{{team.resume}}</span>
  44. <a href="/team/{{team.id}}/edit" class="orange" style="text-decoration:none;">
  45. <span class="glyphicon glyphicon-edit"></span>
  46. </a>
  47. <span class="cut-line">¦</span>
  48. <a href="javascript:delete_team('{{team.id}}');" class="orange" style="text-decoration:none;">
  49. <span class="glyphicon glyphicon-trash"></span>
  50. </a>
  51. </div>
  52. <div class="mt10">
  53. {%for u in team.users%}
  54. <code class="users">{{u.name}}</code>
  55. {%endfor%}
  56. </div>
  57. <hr>
  58. </div>
  59. {%endfor%}
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. {%endblock%}