django-cats/cats/templates/login.html
Jan Dittberner 564a00d46d Finish login and registration flow
- add template for login page
- add logout URL
- display user information
2024-09-20 15:59:51 +02:00

34 lines
No EOL
1.4 KiB
HTML

{% extends 'base.html' %}
{% load i18n %}
{% block content %}
{% if certificate %}
{% if certificate_user %}
<h1>{% translate "Welcome back" %}</h1>
{% include "snippets/certificate_information.html" %}
<form method="post">
<p>
{% csrf_token %}
<button type="submit">{% translate "Continue" %}</button>
</p>
</form>
{% else %}
<h1>{% translate "Registration" %}</h1>
<p>{% blocktranslate trimmed %}
You are not registered. Please check your certificate information and confirm the registration.
{% endblocktranslate %}</p>
{% include "snippets/certificate_information.html" %}
<p>{% blocktranslate trimmed %}
Register with this certificate?
{% endblocktranslate %}</p>
<form method="post">
<p>
{% csrf_token %}
<button type="submit" class="btn btn-primary">{% translate "Register" %}</button>
<a href="{% url "home" %}" role="button" class="btn btn-primary">{% translate "Cancel" %}</a>
</p>
</form>
{% endif %}
{% else %}
<p>{% translate "You must present a client certificate to use CATS." %}</p>
{% endif %}
{% endblock %}