aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/templates/users
diff options
context:
space:
mode:
Diffstat (limited to 'alphabetlearning/templates/users')
-rw-r--r--alphabetlearning/templates/users/user_detail.html31
-rw-r--r--alphabetlearning/templates/users/user_form.html21
2 files changed, 52 insertions, 0 deletions
diff --git a/alphabetlearning/templates/users/user_detail.html b/alphabetlearning/templates/users/user_detail.html
new file mode 100644
index 0000000..7d52259
--- /dev/null
+++ b/alphabetlearning/templates/users/user_detail.html
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+
+{% load static %}
+
+{% block title %}
+ User:
+ {{ object.name }}
+{% endblock title %}
+{% block content %}
+ <div class="container">
+ <div class="row">
+ <div class="col-sm-12">
+ <h2>{{ object.name }}</h2>
+ </div>
+ </div>
+ {% if object == request.user %}
+ <!-- Action buttons -->
+ <div class="row">
+ <div class="col-sm-12">
+ <a class="btn btn-primary" href="{% url 'users:update' %}" role="button">My Info</a>
+ <a class="btn btn-primary"
+ href="{% url 'account_email' %}"
+ role="button">E-Mail</a>
+ <a class="btn btn-primary" href="{% url 'mfa_index' %}" role="button">MFA</a>
+ <!-- Your Stuff: Custom user template urls -->
+ </div>
+ </div>
+ <!-- End Action buttons -->
+ {% endif %}
+ </div>
+{% endblock content %}
diff --git a/alphabetlearning/templates/users/user_form.html b/alphabetlearning/templates/users/user_form.html
new file mode 100644
index 0000000..a53b304
--- /dev/null
+++ b/alphabetlearning/templates/users/user_form.html
@@ -0,0 +1,21 @@
+{% extends "base.html" %}
+
+{% load crispy_forms_tags %}
+
+{% block title %}
+ {{ user.name }}
+{% endblock title %}
+{% block content %}
+ <h1>{{ user.name }}</h1>
+ <form class="form-horizontal"
+ method="post"
+ action="{% url 'users:update' %}">
+ {% csrf_token %}
+ {{ form|crispy }}
+ <div class="control-group">
+ <div class="controls">
+ <button type="submit" class="btn btn-primary">Update</button>
+ </div>
+ </div>
+ </form>
+{% endblock content %}