Açıklama Yok

listuser.html 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
  7. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
  8. <style>
  9. .alt {
  10. background-color:#ccc;
  11. }
  12. .d-flex {
  13. display: -ms-flexbox!important;
  14. display: flex!important;
  15. }
  16. .align-items-center {
  17. -ms-flex-align: center!important;
  18. align-items: center!important;
  19. }
  20. </style>
  21. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  22. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
  23. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
  24. <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
  25. <script src="{{ url_for('static', filename='list.js') }}"></script>
  26. <script>
  27. list.value("tipo", "{{tipo}}");
  28. </script>
  29. </head>
  30. <body>
  31. {% raw %}
  32. <div ng-app="list" ng-controller="ListController">
  33. <div class="container-fluid">
  34. <table>
  35. <thead>
  36. <th>
  37. Nombre
  38. </th>
  39. <th>
  40. email
  41. </th>
  42. {% endraw %}
  43. {% if admin %}
  44. <th>
  45. Actions
  46. </th>
  47. {% endif %}
  48. {% raw %}
  49. </thead>
  50. <tr ng-repeat="user in list" ng-class-odd="'alt'">
  51. <td>
  52. {{user.nombres}} {{user.apellidos}}
  53. </td>
  54. <td>
  55. {{user.email}}
  56. </td>
  57. {% endraw %}
  58. {% if admin %}
  59. <td>
  60. <button type="button" class="btn btn-success btn-sm" ng-click="edit(id)">
  61. <i class="fa fa-edit"></i> Edit
  62. </button>
  63. <button type="button" class="btn btn-danger btn-sm" ng-confirm-click="Are you sure to drop this course?" confirmed-click="drop(id)">
  64. <i class="fa fa-trash"></i> Drop
  65. </button>
  66. </td>
  67. {% endif %}
  68. {% raw %}
  69. </tr>
  70. </div>
  71. </div>
  72. {% endraw %}
  73. </body>
  74. </html>