From: Raphaƫl Gertz Date: Mon, 11 Dec 2023 06:04:02 +0000 (+0100) Subject: Add edit template X-Git-Tag: 0.2~22 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/4f897c729decaa6f39073add948f5b1e5b90f8c6?ds=sidebyside Add edit template --- 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 %}