From 3b5ef3b0a88247eeafeee878de528aad71f9fd4b Mon Sep 17 00:00:00 2001 From: maxbr Date: Fri, 19 Aug 2016 17:10:31 +0200 Subject: Split the dashboard into different apps, add tests JIRA: RELENG-12 Signed-off-by: maxbr --- .../templates/registration/login.html | 34 ++++++++-------------- .../templates/registration/registration_form.html | 30 +++++++++++++++++++ 2 files changed, 42 insertions(+), 22 deletions(-) create mode 100644 tools/pharos-dashboard/templates/registration/registration_form.html (limited to 'tools/pharos-dashboard/templates/registration') diff --git a/tools/pharos-dashboard/templates/registration/login.html b/tools/pharos-dashboard/templates/registration/login.html index efdcd1fb..45b9d451 100644 --- a/tools/pharos-dashboard/templates/registration/login.html +++ b/tools/pharos-dashboard/templates/registration/login.html @@ -1,4 +1,5 @@ -{% extends "layout/base.html" %} +{% extends "layout.html" %} +{% load bootstrap3 %} {% block basecontent %}
@@ -17,14 +18,6 @@ {% endif %}
{% endif %} - {% if form.errors %} -
- - Your username and password didn't match. Please try again. -
- {% endif %}
@@ -36,26 +29,23 @@
-
+ {% csrf_token %} -
-
- -
-
- -
- - -
+ {% bootstrap_form form %} + {% buttons %} + + Register + {% endbuttons %}
+ {# Assumes you setup the password_reset view in your URLconf #} {#

Lost password?

#} {% endblock basecontent %} diff --git a/tools/pharos-dashboard/templates/registration/registration_form.html b/tools/pharos-dashboard/templates/registration/registration_form.html new file mode 100644 index 00000000..0a921d51 --- /dev/null +++ b/tools/pharos-dashboard/templates/registration/registration_form.html @@ -0,0 +1,30 @@ +{% extends "layout.html" %} +{% load bootstrap3 %} + +{% block basecontent %} +
+
+
+ {% bootstrap_messages %} + +
+
+
+{% endblock basecontent %} -- cgit 1.2.3-korg