]> Raphaël G. Git Repositories - airbundle/commitdiff
New layout with header
authorRaphaël Gertz <git@rapsys.eu>
Thu, 13 Oct 2022 13:04:22 +0000 (15:04 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 13 Oct 2022 13:04:22 +0000 (15:04 +0200)
Drop slug member
Add zip, city and country members

Resources/views/form/edit.html.twig

index 2f7286a644ea229170b159169a04e110f36a107d..8c6aab92ba8e46242587479b6bb58090a323d6c3 100644 (file)
@@ -1,8 +1,10 @@
 {% extends '@RapsysAir/body.html.twig' %}
 {% block title %}{{ site.title }} - {{ title }}{% endblock %}
 {% block content %}
 {% extends '@RapsysAir/body.html.twig' %}
 {% block title %}{{ site.title }} - {{ title }}{% endblock %}
 {% block content %}
-       <section id="form">
-               <h2><a href="{{ app.request.requesturi }}">{{ title }}</a></h2>
+       <article>
+               <header>
+                       <h2><a href="{{ app.request.requesturi }}">{{ title }}</a></h2>
+               </header>
                {{ form_start(edit) }}
                        <div>
                                {% if edit.mail is defined %}
                {{ form_start(edit) }}
                        <div>
                                {% if edit.mail is defined %}
                                        {{ form_row(edit.pseudonym) }}
                                {% endif %}
 
                                        {{ form_row(edit.pseudonym) }}
                                {% endif %}
 
-                               {% if edit.slug is defined %}
-                                       {{ form_row(edit.slug) }}
+                               {% if edit.zipcode is defined %}
+                                       {{ form_row(edit.zipcode) }}
+                               {% endif %}
+
+                               {% if edit.city is defined %}
+                                       {{ form_row(edit.city) }}
+                               {% endif %}
+
+                               {% if edit.country is defined %}
+                                       {{ form_row(edit.country) }}
                                {% endif %}
 
                                {% if edit.phone is defined %}
                                {% endif %}
 
                                {% if edit.phone is defined %}
                        {# Render CSRF token etc .#}
                        <footer style="display:none">{{ form_rest(edit) }}</footer>
                {{ form_end(edit) }}
                        {# Render CSRF token etc .#}
                        <footer style="display:none">{{ form_rest(edit) }}</footer>
                {{ form_end(edit) }}
-       </section>
+       </article>
        {% if reset is defined %}
        {% if reset is defined %}
-               <section id="form">
-                       <h2><a href="{{ app.request.requesturi }}">{{ password }}</a></h2>
+               <article>
+                       <header>
+                               <h2><a href="{{ app.request.requesturi }}">{{ password }}</a></h2>
+                       </header>
                        {{ form_start(reset) }}
                                <div>
                                        {% if reset.password is defined %}
                        {{ form_start(reset) }}
                                <div>
                                        {% if reset.password is defined %}
@@ -57,6 +69,6 @@
                                {# Render CSRF token etc .#}
                                <footer style="display:none">{{ form_rest(reset) }}</footer>
                        {{ form_end(reset) }}
                                {# Render CSRF token etc .#}
                                <footer style="display:none">{{ form_rest(reset) }}</footer>
                        {{ form_end(reset) }}
-               </section>
+               </article>
        {% endif %}
 {% endblock %}
        {% endif %}
 {% endblock %}