index.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {% extends "layouts/main.html" %}
  2. {% block title %}Users{% endblock %}
  3. {% block head %}
  4. <link href="{{ url_for('static', filename='vendor/datatables/dataTables.bootstrap4.css') }}" rel="stylesheet">
  5. {% endblock %}
  6. {% block content %}
  7. <table class="table table-bordered dataTable" cellspacing="0">
  8. <thead>
  9. <tr>
  10. <th>ID</th>
  11. <th>Name</th>
  12. <th>Email</th>
  13. <th>Keys</th>
  14. <th>Registration</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. {% for user in users %}
  19. <tr>
  20. <td><a href="{{ url_for('user_overview', id=user.id) }}">{{ user.id }}</a></td>
  21. <td>{{ user.name }}</td>
  22. <td>{{ user.email }}</td>
  23. <td>{{ user.key_count }}</td>
  24. <td>{{ user.registration_at }}</td>
  25. </tr>
  26. {% endfor %}
  27. </tbody>
  28. </table>
  29. {% endblock %}
  30. {% block javascript %}
  31. <script type='text/javascript' src="{{ url_for('static', filename='vendor/datatables/jquery.dataTables.js') }}"></script>
  32. <script type='text/javascript' src="{{ url_for('static', filename='vendor/datatables/dataTables.bootstrap4.js') }}"></script>
  33. <script type='text/javascript' src="{{ url_for('static', filename='js/site/sb-admin-datatables.min.js') }}"></script>
  34. {% endblock %}