summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2015-04-28 08:41:27 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2015-04-28 16:22:38 (GMT)
commitefabc3eaf71e78f40add785b060d3854d42296e7 (patch)
treea17669fc2627d034cc72641a58a3136500f4e030
parent5496d9b714b57f8957dbc1f6b5b60204130f121c (diff)
downloadu-auth-efabc3eaf71e78f40add785b060d3854d42296e7.zip
u-auth-efabc3eaf71e78f40add785b060d3854d42296e7.tar.gz
u-auth-efabc3eaf71e78f40add785b060d3854d42296e7.tar.bz2
local login form
-rw-r--r--uauth/static/css/style.css15
-rw-r--r--uauth/templates/registration/login.html20
2 files changed, 34 insertions, 1 deletions
diff --git a/uauth/static/css/style.css b/uauth/static/css/style.css
index d8a0092..e3b1b46 100644
--- a/uauth/static/css/style.css
+++ b/uauth/static/css/style.css
@@ -3,7 +3,7 @@ ul.login {
margin: 50px auto;
}
-ul.login li, #guest-login ul li, #voucher-login ul li {
+ul.login li, #guest-login ul li, #voucher-login ul li, .loginbox li {
list-style-type: none;
margin: 3px auto;
}
@@ -34,3 +34,16 @@ ul.login li, #guest-login ul li, #voucher-login ul li {
padding: 3px;
border-bottom: 1px solid #bbb;
}
+
+.loginbox {
+ width: 300px;
+ margin: 0 auto;
+ border: 1px solid #bbb;
+}
+
+.loginbox h4 {
+ margin: 0;
+ padding: 5px;
+ color: #fff;
+ background: #999;
+} \ No newline at end of file
diff --git a/uauth/templates/registration/login.html b/uauth/templates/registration/login.html
new file mode 100644
index 0000000..7c3accf
--- /dev/null
+++ b/uauth/templates/registration/login.html
@@ -0,0 +1,20 @@
+{% extends "uauth/base.html" %}
+{% load i18n %}
+
+{% block more-user-links %}
+{{ block.super }}
+ <a href="{% url "login" %}">{% trans 'Login' %}</a>
+{% endblock %}
+
+{% block content %}
+<div class="loginbox">
+ <h4>{% trans "Login" %}</h4>
+ <form method="post">
+ <ul>
+ {% csrf_token %}
+ {{ form.as_ul }}
+ <li><button>{% trans "Login" %}</button></li>
+ </ul>
+ </form>
+</div>
+{% endblock %}