Unverified Commit 1169e8a8 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Basic login page with template

parent 0fba9e88
{% load i18n static %}
<!doctype html>
<html lang="{{ get_current_language }}">
<head>
<title>{% block title %}{% endblock %}</title>
{% block js_head %}{% endblock %}
{% block css %}{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
{% block js %} {% endblock %}
</body>
</html>
<!doctype html> {% extends "base.html" %}
<html> {% load i18n %}
<head> {% block title %}{% trans "Login" %}{% endblock %}
<title>Login</title>
</head>
<body>
<form method="POST"> {% block body %}
{% if next %}
{% if user.is_authenticated %}
{% blocktrans %}
<p>Your account does not have access to this page. To proceed, please
log in with an account that has access.</p>
{% endblocktrans %}
{% else %}
{% blocktrans %}
<p>Please log in to see this page.</p>
{% endblocktrans %}
{% endif %}
{% endif %}
<form method="POST" action="{% url 'login' %}">
{% csrf_token %} {% csrf_token %}
{{ form }} <table>
<input type="submit"> {{ form }}
</table>
<input type="hidden" name="next" value="{{ next }}">
<input type="submit" value="{% trans "Login" %}">
</form> </form>
{% endblock %}
{{ next }}
</body>
</html>
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