X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e9f489960eb8a1fc8c1fc39123589a9358c5d569..51ee8fd625da8fda8b0fcc62443fb5a110fa8160:/redakcja/templates/registration/login.html?ds=sidebyside

diff --git a/redakcja/templates/registration/login.html b/redakcja/templates/registration/login.html
index 1f0698b6..5a831b36 100644
--- a/redakcja/templates/registration/login.html
+++ b/redakcja/templates/registration/login.html
@@ -2,15 +2,37 @@
 
 {% block subtitle %} - Logowanie {% endblock subtitle %}
 
-{% block content %}
+{% block inner_content %}
 
-<div class="isection">
-<form method="POST" action="{% url login %}">
+
+
+<form method="POST" action="{% url 'login' %}">
 {% csrf_token %}
-{{ form.as_p }}
-<p><input type="submit" value="Login" /></p>
-<input type="hidden" name="next" value="{{ next|urlencode }}" />
-</form>
-</div>
 
-{% endblock content %}
+            <form method="POST" action="{% url 'login' %}">
+                {% csrf_token %}
+                {{ form.non_field_errors }}
+                <label for="email">
+                    E-mail</label>
+                    {{ form.username.errors }}
+                    <input name="username" class="form-control" type="email">
+                
+                <label for="password">
+                    Password</label>
+                    {{ form.password.errors }}
+                    <input name="password" class="form-control" type="password">
+                
+                
+                    <input type="checkbox" name="keep">
+                    <label for="keep">Keep me logged in</label>
+                
+                <div><button class="btn btn-default">
+                    Log in
+                </button>
+                </div>
+            </form>
+            <p><a href="{% url 'password_reset' %}">I forgot my password</a></p>
+            <hr>
+            <a class="btn btn-default" href="{% url 'register' %}">Register</a>
+
+{% endblock %}