summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/users.html
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-26 15:08:19 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-27 17:26:40 +0200
commitd8bac16a980634f182e9c753a01e114c3a482af0 (patch)
treeea9fe7c6302c8cf8d01704e0fec38deeb0d54513 /ogcp/templates/users.html
parent57da4f4efa0b8b7d96b1238b0127aa83d20007eb (diff)
Add Users section
In Users section/view, administrator accounts can manage all task related to users. For example: add, delete and edit users.
Diffstat (limited to 'ogcp/templates/users.html')
-rw-r--r--ogcp/templates/users.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/ogcp/templates/users.html b/ogcp/templates/users.html
new file mode 100644
index 0000000..c97f113
--- /dev/null
+++ b/ogcp/templates/users.html
@@ -0,0 +1,33 @@
+{% extends 'base.html' %}
+
+{% block nav_users %}active{% endblock %}
+
+{% block container %}
+ <form id="usersForm">
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
+ </form>
+ {{ super() }}
+</form>
+{% endblock %}
+
+{% block sidebar %}
+ <ul id="users-list" class="nav flex-column nav-pills">
+ {% for user in users %}
+ <li id="user-{{ user['USER'] }}" class="nav-item">
+ <input class="form-check-input" type="checkbox" form="usersForm"
+ value="{{ user['USER'] }}"
+ name="user-{{ user['USER'] }}" />
+ {{ user['USER'] }}
+ </li>
+ {% endfor %}
+ </ul>
+{% endblock %}
+
+{% block commands %}
+ {% if btn_back %}
+ <button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()">
+ {{ _("Back") }}
+ </button>
+ {% endif %}
+{% endblock %}
+