From dd71a2da0c3191983cde5e2b25fc1d238fc48cd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 8 Jan 2024 12:14:58 +0100 Subject: [PATCH] Indent form properly --- Resources/views/form/register.html.twig | 90 ++++++++++++------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/Resources/views/form/register.html.twig b/Resources/views/form/register.html.twig index 5922980..86080a6 100644 --- a/Resources/views/form/register.html.twig +++ b/Resources/views/form/register.html.twig @@ -5,51 +5,51 @@

{{ title }}

- {% if disabled is defined and disabled %} -

{% trans %}Your account has been disabled{% endtrans %}

- {% elseif sent is defined and sent %} -

{% trans %}Your verification mail has been sent, to activate your account you must follow the confirmation link inside{% endtrans %}

-

{% trans %}If you did not receive a verification mail, check your Spam or Junk mail folders{% endtrans %}

- {% else %} - {{ form_start(register) }} - {% if register.mail is defined %} - {{ form_row(register.mail) }} - {% endif %} - - {% if register.password is defined %} - {{ form_row(register.password) }} - {% endif %} - - {% if register.civility is defined %} - {{ form_row(register.civility) }} - {% endif %} - - {% if register.forename is defined %} - {{ form_row(register.forename) }} - {% endif %} - - {% if register.surname is defined %} - {{ form_row(register.surname) }} - {% endif %} - - {% if register.pseudonym is defined %} - {{ form_row(register.pseudonym) }} - {% endif %} - - {% if register.slug is defined %} - {{ form_row(register.slug) }} - {% endif %} - - {% if register.phone is defined %} - {{ form_row(register.phone) }} - {% endif %} - - {{ form_row(register.submit) }} - - {# Render CSRF token etc .#} -
{{ form_rest(register) }}
- {{ form_end(register) }} - {% endif %} + {% if disabled is defined and disabled %} +

{% trans %}Your account has been disabled{% endtrans %}

+ {% elseif sent is defined and sent %} +

{% trans %}Your verification mail has been sent, to activate your account follow the confirmation link inside{% endtrans %}

+

{% trans %}If you did not receive a verification mail, check your Spam or Junk mail folder{% endtrans %}

+ {% else %} + {{ form_start(register) }} + {% if register.mail is defined %} + {{ form_row(register.mail) }} + {% endif %} + + {% if register.password is defined %} + {{ form_row(register.password) }} + {% endif %} + + {% if register.civility is defined %} + {{ form_row(register.civility) }} + {% endif %} + + {% if register.forename is defined %} + {{ form_row(register.forename) }} + {% endif %} + + {% if register.surname is defined %} + {{ form_row(register.surname) }} + {% endif %} + + {% if register.pseudonym is defined %} + {{ form_row(register.pseudonym) }} + {% endif %} + + {% if register.slug is defined %} + {{ form_row(register.slug) }} + {% endif %} + + {% if register.phone is defined %} + {{ form_row(register.phone) }} + {% endif %} + + {{ form_row(register.submit) }} + + {# Render CSRF token etc .#} + + {{ form_end(register) }} + {% endif %}
{% endblock %} -- 2.41.1