34 lines
No EOL
1.4 KiB
HTML
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 %} |