{% extends "base.html" %} {% load i18n extra_filters %} {% load crispy_forms_tags %} {% block content %}
{% if draft %}
{% blocktrans %}Warning! This form is a draft, it will only be applied when you have clicked on the save button.{% endblocktrans %}
{% trans 'This draft will be deleted after 1 hour without action or after clicking the delete button below.' %}
{% csrf_token %}
{% endif %}
{% csrf_token %} {{ form.media }} {{ form|crispy }} {% if saved %}

{% trans 'Change applied' %}

{% endif %}

{% trans 'Usable vars' %}

{% trans 'This data can be added to any field, title or body' %} :

{% verbatim %}{{ newuser.username }}{% endverbatim %} : {% trans 'Return the username of the new user' %}

{% verbatim %}{{ newuser.first_name }}{% endverbatim %} : {% trans 'Return the first name of the new user' %}

{% verbatim %}{{ newuser.last_name }}{% endverbatim %} : {% trans 'Return the last name of the new user' %}

{% verbatim %}{{ newuser.email }}{% endverbatim %} : {% trans 'Return the email of the new user (where this email is sent)' %}

{% trans 'Formatting data text' %}

{% trans 'You can add commands to format the text returned by the above vars' %} :

|title : {% trans 'Capitalize the first letter, for example' %} {% verbatim %}{{ newuser.last_name|title }}{% endverbatim %} {% trans 'return' %} {{ user.last_name|title }} {% trans 'for you' %}

|upper : {% trans 'Capitalize all, for example' %} {% verbatim %}{{ newuser.last_name|upper }}{% endverbatim %} {% trans 'return' %} {{ user.last_name|upper }} {% trans 'for you' %}

{% include 'login.html' %}
{% endblock %}