From 661254b76edd51c36090edd0f898bdca16f23277 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 26 Apr 2022 17:16:52 +0200 Subject: Add 'Add user' to Users section Creates "Add user" form with the following inputs: username, password, password confirmation, role (administrator or regular), allowed scopes. --- ogcp/templates/auth/add_user.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ogcp/templates/auth/add_user.html (limited to 'ogcp/templates/auth/add_user.html') diff --git a/ogcp/templates/auth/add_user.html b/ogcp/templates/auth/add_user.html new file mode 100644 index 0000000..af44caa --- /dev/null +++ b/ogcp/templates/auth/add_user.html @@ -0,0 +1,26 @@ +{% extends 'users.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% set sidebar_state = 'disabled' %} +{% set btn_back = true %} + +{% block nav_user_add %}active{% endblock %} +{% block content %} + +

{{_('Add a user')}}

+ +{{ wtf.quick_form(form, + action=url_for('user_add_post'), + method='post', + button_map={'submit_btn':'primary'}, + id='user-form') }} + + + +{% endblock %} -- cgit v1.2.3-18-g5258