From efbbd480ddc62e695123d31c31d233b0df5155bd Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 13 May 2024 17:26:25 +0100 Subject: After first pre-commit processing --- pyblackbird_cc/templates/users/user_detail.html | 31 +++++++++++++++++++++++++ pyblackbird_cc/templates/users/user_form.html | 21 +++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 pyblackbird_cc/templates/users/user_detail.html create mode 100644 pyblackbird_cc/templates/users/user_form.html (limited to 'pyblackbird_cc/templates/users') diff --git a/pyblackbird_cc/templates/users/user_detail.html b/pyblackbird_cc/templates/users/user_detail.html new file mode 100644 index 0000000..7d52259 --- /dev/null +++ b/pyblackbird_cc/templates/users/user_detail.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} + +{% load static %} + +{% block title %} + User: + {{ object.name }} +{% endblock title %} +{% block content %} +
+
+
+

{{ object.name }}

+
+
+ {% if object == request.user %} + +
+
+ My Info + E-Mail + MFA + +
+
+ + {% endif %} +
+{% endblock content %} diff --git a/pyblackbird_cc/templates/users/user_form.html b/pyblackbird_cc/templates/users/user_form.html new file mode 100644 index 0000000..a53b304 --- /dev/null +++ b/pyblackbird_cc/templates/users/user_form.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% load crispy_forms_tags %} + +{% block title %} + {{ user.name }} +{% endblock title %} +{% block content %} +

{{ user.name }}

+
+ {% csrf_token %} + {{ form|crispy }} +
+
+ +
+
+
+{% endblock content %} -- cgit v1.2.3