register / login

This commit is contained in:
Sanj 2011-08-03 20:25:43 +05:30
parent 0caed34a9c
commit f88fa1e057
2 changed files with 14 additions and 16 deletions

View File

@ -1,22 +1,16 @@
{% extends 'registration/register_base.html' %} {% extends 'registration/register_base.html' %}
{% block title %}
Login
{% endblock %}
{% block extra_head %} {% block reg_content %}
<link rel="stylesheet" href="/static/css/files/login.css" />
{% endblock %}
{% block pageTitle %}
Login
{% endblock %}
{% block content %}
<div id="loginWrapper"> <div id="loginWrapper">
<form action="" method="POST"> <form action="" method="POST">
{{ form.as_ul }}<br /> {% csrf_token %}
<input type="submit" value="Submit" /> <table>
{{ form.as_table }}
<tr>
<td colspan="2"><input type="submit" value="Submit" /></td>
</tr>
</table>
</form> </form>
</div> </div>

View File

@ -4,8 +4,12 @@
{% block reg_content %} {% block reg_content %}
<form action="" method="POST"> <form action="" method="POST">
{{ form.as_p }} <table>
{{ form.as_table }}
{% csrf_token %} {% csrf_token %}
<input type="submit" value="Submit" /> <tr>
<td colspan="2"><input type="submit" value="Submit" /></td>
</tr>
</table>
</form> </form>
{% endblock %} {% endblock %}