Sith/core/templates/core/register.jinja
2016-07-19 19:03:16 +02:00

21 lines
695 B
Django/Jinja

{% extends "core/base.jinja" %}
{% block title %}{% trans %}Register a user{% endtrans %}{% endblock %}
{% block content %}
<h1>{% trans %}Register a user{% endtrans %}</h1>
{% if user_registered %}
{% trans user_name=user_registered.get_display_name() %}Welcome {{ user_name }}!{% endtrans %}
{% trans %}You successfully registred and you will soon receive a confirmation mail.{% endtrans %}
{% trans username=user_registered.username %}Your username is {{ username }}.{% endtrans %}
{% endif %}
<form action="{{ url('core:register') }}" method="post">
{% csrf_token %}
{{ form }}
<p><input type="submit" value="{% trans %}Register{% endtrans %}" /></p>
</form>
{% endblock %}