Commit 2c9b58d1 authored by Janez K's avatar Janez K
Browse files

dodal manjkajoce template za login

parent bda1fbc7
{% extends "base.html" %}
{% load url from future %}
{% block body %}
You've been logged out! <br> <a href="{% url 'website index' %}">Proceed</a>
{% endblock %}
{% extends "base.html" %}
{% load url from future %}
{% block body %}
{% if form.errors %}
<p>Narobe username pa password alo!</p>
{% endif %}
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
{{ form.username.label_tag }}
{{ form.username }}
{{ form.password.label_tag }}
{{ form.password }}
<input type="submit" value="login">
<input type="hidden" name="next" value="{{ next }}">
</form>
{% endblock %}
{% extends "base.html" %}
{% load url from future %}
{% block body %}
Password change done!
<a href="{% url 'the index' %}">Go home</a>
{% endblock %}
{% extends "base.html" %}
{% load url from future %}
{% block body %}
This is the password change form.
<form method="post" action="{% url 'password change' %}">
{% csrf_token %}
{{ form.old_password.label_tag }}
{{ form.old_password }} {{ form.old_password.errors }}<br>
{{ form.new_password1.label_tag }}
{{ form.new_password1 }} {{ form.new_password1.errors }} <br>
{{ form.new_password2.label_tag }}
{{ form.new_password2 }} {{ form.new_password2.errors }}<br>
<input type="submit" value="login">
</form>
{% endblock body %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment