Adds login and logout and some buttons.
This commit is contained in:
1 parent
96bacb586d
commit
59bf27b5ab
8 files changed
+94
-19
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user