From: Raphaƫl Gertz Date: Mon, 11 Dec 2023 06:04:41 +0000 (+0100) Subject: Add register template X-Git-Tag: 0.2~19 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/e04a743c46d9c3daa29a886028cbb273f026847a Add register template --- diff --git a/Resources/views/form/register.html.twig b/Resources/views/form/register.html.twig new file mode 100644 index 0000000..5922980 --- /dev/null +++ b/Resources/views/form/register.html.twig @@ -0,0 +1,55 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ 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_end(register) }} + {% endif %} +
+
+{% endblock %}