X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/139af81833f2b6727618d8e2c30cc7157c42e8a1..32e27db91137094ff6b8ebb4154cb44addb837e2:/wolnelektury/templates/auth/login.html

diff --git a/wolnelektury/templates/auth/login.html b/wolnelektury/templates/auth/login.html
index 204cce641..a168ff7f8 100644
--- a/wolnelektury/templates/auth/login.html
+++ b/wolnelektury/templates/auth/login.html
@@ -1,28 +1,25 @@
+{% extends "base.html" %}
 {% load i18n %}
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
-"http://www.w3.org/TR/html4/strict.dtd">
-<html>
-	<head>
-		<title>{% trans "Authorize Token" %}</title>
-		<link rel="stylesheet" href="/static/css/mobile.css" media="handheld, only screen and (max-device-width:480px)"/>
-		<meta name="viewport" content="width=320" />		
-	</head>
-    <body>
-        <h1>WolneLektury.pl - {% trans "Sign in" %} / {% trans "Register"%}</h1>
-        <form method="post" action="." id="login-form" class="cuteform">
-            <h2>{% trans "Sign in" %}</h2>
-            <ul>
-                {{ form.as_ul }}
-                <li><input type="submit" value="{% trans "Sign in" %}" /></li>
-            </ul>
-            <p><input type="hidden" name="next" value="{{ next }}" /></p>
-        </form>
 
-        <form action="." method="post" accept-charset="utf-8" id="registration-form">
-            <h2>{% trans "Register" %}</h2>
-            <ul>
-                <li><input type="submit" value="{% trans "Register" %}"/></li>
-            </ul>
-        </form>
-    </body>
-</html>
+{% block title %}{% trans "Sign in" %} / {% trans "Register on"%} WolneLektury.pl{% endblock %}
+
+{% block body %}
+    <h1>{% trans "Sign in" %} / {% trans "Register"%}</h1>
+    <form action="." method="get" accept-charset="utf-8" id="search-form">
+        <p><li>{{ search_form.q }} <input type="submit" value="{% trans "Search" %}" /></li> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to main page" %}</a></p>
+    </form>
+    <form method="post" action="." id="login-form" class="cuteform">
+        <h2>{% trans "Sign in" %}</h2>
+        <ol>
+            {{ form.as_ul }}
+            <li><input type="submit" value="{% trans "Sign in" %}" /></li>
+        </ol>
+        <p><input type="hidden" name="next" value="{{ next }}" /></p>
+    </form>
+
+    <form action="." method="post" accept-charset="utf-8" id="registration-form">
+        <h2>{% trans "Register" %}</h2>
+
+        <p><input type="submit" value="{% trans "Register" %}"/></p>
+    </form>
+{% endblock %}