review the login view
[myslice.git] / templates / login-view.html
index 5376577..1a39cd3 100644 (file)
@@ -1,29 +1,17 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<title>Log in</title>
-<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
-<style>
-body{
-       font-family:Arial,Helvetica,sans-serif;
-       font-size: 12px;
-}
-</style>
-</head>
-<body>
-       {{ state }}
-          <a href="/" alt="Home"><img class="logo" src="{{ STATIC_URL }}img/myslice-logo.png" alt="MySlice" /></a>
-       <form action="/login/" method="post">
-               {% csrf_token %}
-               {% if next %}
-               <input type="hidden" name="next" value="{{ next }}" />
-               {% endif %}
-               username:
-               <input type="text" name="username" value="{{ username}}" /><br />
-               password:
-               <input type="password" name="password" value="" /><br />
+{% extends 'myslice-layout.html' %}
 
-               <input type="submit" value="Log In" />
-       </form>
-</body>
-</html>
+{% block content_related %}
+<p class='login-status'> {{ state }} </p>
+<a href="/" alt="Home"><img class="logo" src="{{ STATIC_URL }}img/myslice-logo.png" alt="MySlice" /></a>
+<form action="/login/" method="post">
+  {% csrf_token %}
+  {% if next %}
+  <input type="hidden" name="next" value="{{ next }}" />
+  {% endif %}
+  username:
+  <input type="text" name="username" value="{{ username}}" /><br />
+  password:
+  <input type="password" name="password" value="" /><br />
+  <input type="submit" value="Log In" />
+</form>
+{% endblock content_related %}