summaryrefslogtreecommitdiffstats
path: root/tools/pharos-dashboard/templates/registration
diff options
context:
space:
mode:
authormaxbr <maxbr@mi.fu-berlin.de>2016-07-29 12:43:43 +0200
committerMax Breitenfeldt <max.breitenfeldt@gmail.com>2016-07-29 11:25:20 +0000
commit35c34c690ae9616d791c39fa218fe1621fa8d8d2 (patch)
tree6168caaeb4be9144ed6bfde0150850d6559c8b6f /tools/pharos-dashboard/templates/registration
parent7ae1f204de947a3c12804c04f32e20d45eb99eba (diff)
import pharos dashboard code
JIRA: RELENG-12 The last commit was missing some JS/CSS dependencies of the site. This happened because they are in folders that are named 'build' or 'dist'. This commit adds a bower.json file, that specifies dependencies. Dependencies can now be installed by running 'bower install' in the dashboard/static folder. Change-Id: I054f319c66771f767e97711cb678d79d3bd6bee4 Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'tools/pharos-dashboard/templates/registration')
-rw-r--r--tools/pharos-dashboard/templates/registration/login.html61
1 files changed, 61 insertions, 0 deletions
diff --git a/tools/pharos-dashboard/templates/registration/login.html b/tools/pharos-dashboard/templates/registration/login.html
new file mode 100644
index 00000000..efdcd1fb
--- /dev/null
+++ b/tools/pharos-dashboard/templates/registration/login.html
@@ -0,0 +1,61 @@
+{% extends "layout/base.html" %}
+
+{% block basecontent %}
+ <div class="container">
+ <div class="row">
+ <div class="col-md-4 col-md-offset-4">
+ {% if next %}
+ <div class="alert alert-dismissable alert-info">
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
+ <span aria-hidden="true">&times;</span>
+ </button>
+ {% if user.is_authenticated %}
+ Your account doesn't have access to this page. To proceed,
+ please login with an account that has access.
+ {% else %}
+ Please login to see this page.
+ {% endif %}
+ </div>
+ {% endif %}
+ {% if form.errors %}
+ <div class="alert alert-danger alert-dismissable">
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
+ <span aria-hidden="true">&times;</span>
+ </button>
+ Your username and password didn't match. Please try again.
+ </div>
+ {% endif %}
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-md-4 col-md-offset-4">
+ <div class="login-panel panel panel-default">
+ <div class="panel-heading">
+ <h3 class="panel-title">
+ Login
+ </h3>
+ </div>
+ <div class="panel-body">
+ <form method="post" action="{% url 'dashboard:login' %}">
+ {% csrf_token %}
+ <fieldset>
+ <div class="form-group">
+ <input class="form-control" placeholder="Username" name="username" type="text"
+ autofocus>
+ </div>
+ <div class="form-group">
+ <input class="form-control" placeholder="Password" name="password"
+ type="password" value="">
+ </div>
+ <input type="submit" value="Login" class="btn btn-lg btn-success btn-block"/>
+ <input type="hidden" name="next" value="{{ next }}"/>
+ </fieldset>
+ </form>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ {# Assumes you setup the password_reset view in your URLconf #}
+ {# <p><a href="{% url 'password_reset' %}">Lost password?</a></p>#}
+{% endblock basecontent %}