Adds login and logout and some buttons.

This commit is contained in:
nikolark committed 2012-01-05 22:54:51 +01:00
1 parent 96bacb586d
commit 59bf27b5ab
8 files changed
+94 -19

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block title %}Logg inn{% endblock %}
{% block content %}
{% include "registration/login_form.html" %}
{% endblock %}
+20
View File
@@ -0,0 +1,20 @@
{% if form.errors %}
<p>Brukernavn og passord stemmer ikke overens. Prøv igjen.</p>
{% endif %}
<form method="post" action="{% url django.contrib.auth.views.login %}" class="bp">
{% csrf_token %}
<table>
<tr>
<th><label for="id_username">Brukernavn:</label></th>
<td>{{ form.username }}</td>
</tr>
<tr>
<th><label for="id_password">Passord: </label></th>
<td>{{ form.password }}</td>
</tr>
</table>
<input type="submit" value="Logg inn" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
+8
View File
@@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block title %}Logg inn{% endblock %}
{% block content %}
Du er logget ut. Vil du <a href="{% url main.views.home %}">logge inn igjen</a>.
{% endblock %}