12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <!DOCTYPE html>
- <html lang="en-US">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
-
- <style>
- .alt {
- background-color:#ccc;
- }
- .d-flex {
- display: -ms-flexbox!important;
- display: flex!important;
- }
- .align-items-center {
- -ms-flex-align: center!important;
- align-items: center!important;
- }
- </style>
-
- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
- <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
- <script src="{{ url_for('static', filename='list.js') }}"></script>
- <script>
- list.value("tipo", "{{tipo}}");
- </script>
- </head>
-
- <body>
-
- {% raw %}
- <div ng-app="list" ng-controller="ListController">
- <div class="container-fluid">
- <table>
- <thead>
- <th>
- Nombre
- </th>
- <th>
- email
- </th>
- {% endraw %}
- {% if admin %}
- <th>
- Actions
- </th>
- {% endif %}
- {% raw %}
- </thead>
- <tr ng-repeat="user in list" ng-class-odd="'alt'">
- <td>
- {{user.nombres}} {{user.apellidos}}
- </td>
- <td>
- {{user.email}}
- </td>
- {% endraw %}
- {% if admin %}
- <td>
- <button type="button" class="btn btn-success btn-sm" ng-click="edit(id)">
- <i class="fa fa-edit"></i> Edit
- </button>
- <button type="button" class="btn btn-danger btn-sm" ng-confirm-click="Are you sure to drop this course?" confirmed-click="drop(id)">
- <i class="fa fa-trash"></i> Drop
- </button>
- </td>
- {% endif %}
- {% raw %}
- </tr>
- </div>
- </div>
- {% endraw %}
-
- </body>
- </html>
|