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