From b23a90f598af10e401950eb77fc4451ede4a7939 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 06:01:12 +0100 Subject: [PATCH 01/16] Enable mail, pseudonym and slug for admin --- Resources/config/packages/rapsys_blog.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Resources/config/packages/rapsys_blog.yaml b/Resources/config/packages/rapsys_blog.yaml index deae9f9..17eaed6 100644 --- a/Resources/config/packages/rapsys_blog.yaml +++ b/Resources/config/packages/rapsys_blog.yaml @@ -98,11 +98,10 @@ rapsys_user: site: '%rapsys_blog.title%' #Edit replacement edit: - #field: - #mail: false - #password: false - #pseudonym: false - #slug: false + admin: + mail: true + pseudonym: true + slug: true route: index: 'root' view: -- 2.41.1 From eba201f350cd40d6aac8e6ed5551a3a6088ea3dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 06:04:47 +0100 Subject: [PATCH 02/16] Enable mail and slug admin fields --- Resources/config/packages/rapsys_blog.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Resources/config/packages/rapsys_blog.yaml b/Resources/config/packages/rapsys_blog.yaml index 17eaed6..cd687a4 100644 --- a/Resources/config/packages/rapsys_blog.yaml +++ b/Resources/config/packages/rapsys_blog.yaml @@ -100,7 +100,6 @@ rapsys_user: edit: admin: mail: true - pseudonym: true slug: true route: index: 'root' -- 2.41.1 From c2115d231ac7db51a60d026f2f3413687ee5e7d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 06:05:08 +0100 Subject: [PATCH 03/16] Add about page --- Resources/views/about.html.twig | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Resources/views/about.html.twig diff --git a/Resources/views/about.html.twig b/Resources/views/about.html.twig new file mode 100644 index 0000000..b5a5840 --- /dev/null +++ b/Resources/views/about.html.twig @@ -0,0 +1,12 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ title }}

+

{{ description }}

+
+
+

TODO: dernière page à faire avant la page cv et peut-être un peu de sémantique pour google & facebook :)

+
+
+{% endblock %} -- 2.41.1 From 7635accc62b4136f264bacad55c3a566b5b9268f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 06:05:46 +0100 Subject: [PATCH 04/16] Add edit form extension --- Form/EditType.php | 65 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Form/EditType.php diff --git a/Form/EditType.php b/Form/EditType.php new file mode 100644 index 0000000..8e0a543 --- /dev/null +++ b/Form/EditType.php @@ -0,0 +1,65 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Rapsys\BlogBundle\Form; + +use Symfony\Component\Form\Extension\Core\Type\TextType; +use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Component\OptionsResolver\OptionsResolver; + +use Rapsys\UserBundle\Form\EditType as BaseEditType; + +class EditType extends BaseEditType { + /** + * {@inheritdoc} + */ + public function buildForm(FormBuilderInterface $builder, array $options): FormBuilderInterface { + //Call parent build form + $form = parent::buildForm($builder, $options); + + //Add extra pseudonym field + if (!empty($options['pseudonym'])) { + $form->add('pseudonym', TextType::class, ['attr' => ['placeholder' => 'Your pseudonym'], 'required' => false]); + } + + //Add extra slug field + if (!empty($options['slug'])) { + $form->add('slug', TextType::class, ['attr' => ['placeholder' => 'Your slug'], 'required' => false]); + } + + //Return form + return $form; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver): void { + //Call parent configure options + parent::configureOptions($resolver); + + //Set defaults + $resolver->setDefaults(['pseudonym' => true, 'slug' => false]); + + //Add extra pseudonym option + $resolver->setAllowedTypes('pseudonym', 'boolean'); + + //Add extra slug option + $resolver->setAllowedTypes('slug', 'boolean'); + } + + /** + * {@inheritdoc} + */ + public function getName(): string { + return 'rapsys_blog_edit'; + } +} -- 2.41.1 From b6999c0d4b22549feb33f16ed3383fe7a5db2bbf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 06:06:28 +0100 Subject: [PATCH 05/16] Add register form extension --- Form/RegisterType.php | 69 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Form/RegisterType.php diff --git a/Form/RegisterType.php b/Form/RegisterType.php new file mode 100644 index 0000000..690fefb --- /dev/null +++ b/Form/RegisterType.php @@ -0,0 +1,69 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Rapsys\BlogBundle\Form; + +use Symfony\Bridge\Doctrine\Form\Type\EntityType; +use Symfony\Component\Form\Extension\Core\Type\TelType; +use Symfony\Component\Form\Extension\Core\Type\TextType; +use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Component\OptionsResolver\OptionsResolver; + +use Rapsys\AirBundle\Entity\Country; + +use Rapsys\UserBundle\Form\RegisterType as BaseRegisterType; + +class RegisterType extends BaseRegisterType { + /** + * {@inheritdoc} + */ + public function buildForm(FormBuilderInterface $builder, array $options): FormBuilderInterface { + //Call parent build form + $form = parent::buildForm($builder, $options); + + //Add extra pseudonym field + if (!empty($options['pseudonym'])) { + $form->add('pseudonym', TextType::class, ['attr' => ['placeholder' => 'Your pseudonym'], 'required' => false]); + } + + //Add extra slug field + if (!empty($options['slug'])) { + $form->add('slug', TextType::class, ['attr' => ['placeholder' => 'Your slug'], 'required' => false]); + } + + //Return form + return $form; + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver): void { + //Call parent configure options + parent::configureOptions($resolver); + + //Set defaults + $resolver->setDefaults(['pseudonym' => true, 'slug' => false]); + + //Add extra pseudonym option + $resolver->setAllowedTypes('pseudonym', 'boolean'); + + //Add extra slug option + $resolver->setAllowedTypes('slug', 'boolean'); + } + + /** + * {@inheritdoc} + */ + public function getName(): string { + return 'rapsys_blog_register'; + } +} -- 2.41.1 From 76c4701293b95ce4cfeb71f1ced09b52626824c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 06:08:08 +0100 Subject: [PATCH 06/16] Update contact mail html template --- Resources/views/mail/contact.html.twig | 43 +++----------------------- 1 file changed, 5 insertions(+), 38 deletions(-) diff --git a/Resources/views/mail/contact.html.twig b/Resources/views/mail/contact.html.twig index 60f452c..0c4731d 100644 --- a/Resources/views/mail/contact.html.twig +++ b/Resources/views/mail/contact.html.twig @@ -1,46 +1,13 @@ - - - - - - {{ subject }} - - - - - - - - -
{{ blog_title }}

{{ blog_title }}

- +{% extends '@RapsysBlog/mail/_base.html.twig' %} +{% block content %} +
  -

{% trans %}Hi,{% endtrans %} {{ contact_name }}

-

{% trans %}Subject:{% endtrans %} {{ subject }}

+

{{ subject }}

{{ message|nl2br }}

 
- - - - - - - - - +{% endblock %} -- 2.41.1 From 9102b3ce4c7faabec415dfc911663024e55964b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 06:59:01 +0100 Subject: [PATCH 07/16] Add mail base template --- Resources/views/mail/_base.html.twig | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Resources/views/mail/_base.html.twig diff --git a/Resources/views/mail/_base.html.twig b/Resources/views/mail/_base.html.twig new file mode 100644 index 0000000..d50bf52 --- /dev/null +++ b/Resources/views/mail/_base.html.twig @@ -0,0 +1,44 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block head %} + + + {% if head.locale is defined and head.locale %}{% endif %} + + {{ subject }} + +{% endblock %} +{% block links %}{% endblock %} +{% block header %} + + + + {##} + + + + +{% endblock %} +{% block message %}{% endblock %} +{% block footer %} + + + + + +
{{ head.logo.alt }}{{ head.logo.alt }}

{{ head.site }}

{{ copy.long }} - {{ copy.short }}
+{% endblock %} -- 2.41.1 From 2315c3b988a1ba628c4430718b6f770d1bc23a10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:00:31 +0100 Subject: [PATCH 08/16] Add contact mail text template --- Resources/views/mail/contact.text.twig | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Resources/views/mail/contact.text.twig diff --git a/Resources/views/mail/contact.text.twig b/Resources/views/mail/contact.text.twig new file mode 100644 index 0000000..16f6419 --- /dev/null +++ b/Resources/views/mail/contact.text.twig @@ -0,0 +1,9 @@ +{{ subject }} +{% for i in range(1, subject|length) %}={% endfor %} + + +{{ message }} + +-- + +{{ copy.long }} - {{ copy.short }} -- 2.41.1 From b881ad790b1c50fdff160b5d1d51a72ab68c24d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:00:53 +0100 Subject: [PATCH 09/16] Add recover mail template --- Resources/views/mail/recover.html.twig | 14 ++++++++++++++ Resources/views/mail/recover.text.twig | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Resources/views/mail/recover.html.twig create mode 100644 Resources/views/mail/recover.text.twig diff --git a/Resources/views/mail/recover.html.twig b/Resources/views/mail/recover.html.twig new file mode 100644 index 0000000..3e7a954 --- /dev/null +++ b/Resources/views/mail/recover.html.twig @@ -0,0 +1,14 @@ +{% extends '@RapsysBlog/mail/_base.html.twig' %} +{% block content %} + + + +

{{ 'Welcome back to %head.site%'|trans({'%head.site%': head.site}) }}

+

{% if recipient_name %}{{ 'Hi %recipient_name%,'|trans({'%recipient_name%': recipient_name}) }}{% else %}{% trans %}Hi,{% endtrans %}{% endif %}

+

{{ 'Thanks so much for rejoining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}

+

{% trans %}To recover your account follow this link:{% endtrans %}

+

{{ recover_url }}

+ + + +{% endblock %} diff --git a/Resources/views/mail/recover.text.twig b/Resources/views/mail/recover.text.twig new file mode 100644 index 0000000..76f33e0 --- /dev/null +++ b/Resources/views/mail/recover.text.twig @@ -0,0 +1,12 @@ +{{ subject }} +{% for i in range(1, subject|length) %}={% endfor %} + + +*{{ 'Thanks so much for rejoining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}* + +{% trans %}To recover your account follow this link:{% endtrans %} +{{ recover_url }} + +-- + +{{ copy.long }} - {{ copy.short }} -- 2.41.1 From 8121e8a456951e715d368c7ae2a74e658e8bfd58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:01:44 +0100 Subject: [PATCH 10/16] Add register mail template --- Resources/views/mail/register.html.twig | 14 ++++++++++++++ Resources/views/mail/register.text.twig | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Resources/views/mail/register.html.twig create mode 100644 Resources/views/mail/register.text.twig diff --git a/Resources/views/mail/register.html.twig b/Resources/views/mail/register.html.twig new file mode 100644 index 0000000..390dde4 --- /dev/null +++ b/Resources/views/mail/register.html.twig @@ -0,0 +1,14 @@ +{% extends '@RapsysBlog/mail/_base.html.twig' %} +{% block content %} + + + +

{{ 'Welcome to %head.site%'|trans({'%head.site%': head.site}) }}

+

{% if recipient_name %}{{ 'Hi %recipient_name%,'|trans({'%recipient_name%': recipient_name}) }}{% else %}{% trans %}Hi,{% endtrans %}{% endif %}

+

{{ 'Thanks so much for joining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}

+

{% trans %}To create your account you must follow this link:{% endtrans %}

+

{{ confirm_url }}

+ + + +{% endblock %} diff --git a/Resources/views/mail/register.text.twig b/Resources/views/mail/register.text.twig new file mode 100644 index 0000000..7cc66e1 --- /dev/null +++ b/Resources/views/mail/register.text.twig @@ -0,0 +1,12 @@ +{{ subject }} +{% for i in range(1, subject|length) %}={% endfor %} + + +*{{ 'Thanks so much for joining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}* + +{% trans %}To create your account you must follow this link:{% endtrans %} +{{ confirm_url }} + +-- + +{{ copy.long }} - {{ copy.short }} -- 2.41.1 From 1c3893d68e8cdbe1503dcca873f1ede32fa6cdbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:03:27 +0100 Subject: [PATCH 11/16] Add form_theme template --- Resources/views/form/form_div_layout.html.twig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Resources/views/form/form_div_layout.html.twig diff --git a/Resources/views/form/form_div_layout.html.twig b/Resources/views/form/form_div_layout.html.twig new file mode 100644 index 0000000..a0ca49f --- /dev/null +++ b/Resources/views/form/form_div_layout.html.twig @@ -0,0 +1,17 @@ +{# vendor/symfony/twig-bridge/Resources/views/Form/form_div_layout.html.twig #} +{% use "form_div_layout.html.twig" %} + +{%- block form_row -%} + {%- set widget_attr = {} -%} + {%- if help is not empty -%} + {%- set widget_attr = {attr: {'aria-describedby': id ~"_help"}} -%} + {%- endif -%} + + {{- form_label(form) -}} +
+ {{- form_widget(form, widget_attr) -}} + {{- form_errors(form) -}} + {{- form_help(form) -}} +
+ +{%- endblock form_row -%} -- 2.41.1 From b2f5bafdc433f99e1258ec7d6fba9c5b2087421c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:03:49 +0100 Subject: [PATCH 12/16] Add contact template --- Resources/views/form/contact.html.twig | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Resources/views/form/contact.html.twig diff --git a/Resources/views/form/contact.html.twig b/Resources/views/form/contact.html.twig new file mode 100644 index 0000000..dbbf191 --- /dev/null +++ b/Resources/views/form/contact.html.twig @@ -0,0 +1,31 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ title }}

+

{{ description }}

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

{% trans %}Your message has been sent{% endtrans %}

+ {% else %} + {{ form_start(contact) }} + {{ form_row(contact.subject) }} + + {{ form_row(contact.name) }} + + {{ form_row(contact.mail) }} + + {{ form_row(contact.message) }} + + {{ form_row(contact.captcha) }} + + {{ form_row(contact.submit) }} + + {# Render CSRF token etc .#} +
{{ form_rest(contact) }}
+ {{ form_end(contact) }} + {% endif %} +
+
+{% endblock %} -- 2.41.1 From 4f897c729decaa6f39073add948f5b1e5b90f8c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:04:02 +0100 Subject: [PATCH 13/16] Add edit template --- Resources/views/form/edit.html.twig | 78 +++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Resources/views/form/edit.html.twig diff --git a/Resources/views/form/edit.html.twig b/Resources/views/form/edit.html.twig new file mode 100644 index 0000000..9fc1c59 --- /dev/null +++ b/Resources/views/form/edit.html.twig @@ -0,0 +1,78 @@ +{% 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(edit) }} + {% if edit.mail is defined %} + {{ form_row(edit.mail) }} + {% endif %} + + {% if edit.password is defined %} + {{ form_row(edit.password) }} + {% endif %} + + {% if edit.civility is defined %} + {{ form_row(edit.civility) }} + {% endif %} + + {% if edit.forename is defined %} + {{ form_row(edit.forename) }} + {% endif %} + + {% if edit.surname is defined %} + {{ form_row(edit.surname) }} + {% endif %} + + {% if edit.pseudonym is defined %} + {{ form_row(edit.pseudonym) }} + {% endif %} + + {% if edit.slug is defined %} + {{ form_row(edit.slug) }} + {% endif %} + + {% if edit.active is defined %} + {{ form_row(edit.active) }} + {% endif %} + + {% if edit.enable is defined %} + {{ form_row(edit.enable) }} + {% endif %} + + {{ form_row(edit.submit) }} + + {# Render CSRF token etc .#} +
{{ form_rest(edit) }}
+ {{ form_end(edit) }} + {% endif %} +
+
+ {% if reset is defined %} +
+
+

{{ password }}

+
+
+ {{ form_start(reset) }} + {% if reset.password is defined %} + {{ form_row(reset.password) }} + {% endif %} + + {{ form_row(reset.submit) }} + + {# Render CSRF token etc .#} +
{{ form_rest(reset) }}
+ {{ form_end(reset) }} +
+
+ {% endif %} +{% endblock %} -- 2.41.1 From 852d7acc0ef4b53018d757a680ecb7569ebf990c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:04:12 +0100 Subject: [PATCH 14/16] Add login template --- Resources/views/form/login.html.twig | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Resources/views/form/login.html.twig diff --git a/Resources/views/form/login.html.twig b/Resources/views/form/login.html.twig new file mode 100644 index 0000000..2d15c51 --- /dev/null +++ b/Resources/views/form/login.html.twig @@ -0,0 +1,38 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ title }}

+
+
+ {{ form_start(login) }} + {{ form_row(login.mail) }} + + {{ form_row(login.password) }} + + {{ form_row(login.submit) }} + + {# Render CSRF token etc .#} +
{{ form_rest(login) }}
+ {{ form_end(login) }} +
+
+ {% if recover is defined %} +
+
+

{% trans %}Recover{% endtrans %}

+
+
+ {{ form_start(recover) }} + + {{ form_row(recover.mail) }} + + {{ form_row(recover.submit) }} + + {# Render CSRF token etc .#} +
{{ form_rest(recover) }}
+ {{ form_end(recover) }} +
+
+ {% endif %} +{% endblock %} -- 2.41.1 From 03370e100400c5e095b31633cd60ae9847999d3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:04:27 +0100 Subject: [PATCH 15/16] Add recover template --- Resources/views/form/recover.html.twig | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Resources/views/form/recover.html.twig diff --git a/Resources/views/form/recover.html.twig b/Resources/views/form/recover.html.twig new file mode 100644 index 0000000..69b7ba2 --- /dev/null +++ b/Resources/views/form/recover.html.twig @@ -0,0 +1,28 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ title }}

+
+
+ {% if sent %} +

{% trans %}Your recover account message has been sent{% endtrans %}

+ {% else %} + {{ form_start(recover) }} + {% if recover.mail is defined %} + {{ form_row(recover.mail) }} + {% endif %} + + {% if recover.password is defined %} + {{ form_row(recover.password) }} + {% endif %} + + {{ form_row(recover.submit) }} + + {# Render CSRF token etc .#} +
{{ form_rest(recover) }}
+ {{ form_end(recover) }} + {% endif %} +
+
+{% endblock %} -- 2.41.1 From e04a743c46d9c3daa29a886028cbb273f026847a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:04:41 +0100 Subject: [PATCH 16/16] Add register template --- Resources/views/form/register.html.twig | 55 +++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Resources/views/form/register.html.twig 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 %} -- 2.41.1