From bdf0ec63d28ebe17be27080dd10bea3a72035bd3 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 13 Jul 2021 12:38:02 +0200 Subject: [PATCH] person templates responsive breakpoints in content --- .../Resources/views/Person/create.html.twig | 12 +++++++----- .../Resources/views/Person/edit.html.twig | 6 +++++- .../Resources/views/Person/view.html.twig | 4 ++-- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig index 7ad44bbf0..517a041d3 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig @@ -19,8 +19,8 @@ {% block title %}{{ 'Add a person'|trans }}{% endblock title %} {% block content %} -
-
+
+
{{ form_start(form) }}

{{ 'Add a person'|trans }}

@@ -40,9 +40,11 @@ {{ form_row(form.creation_date, { 'label' : 'Creation date'|trans }) }} {{ form_rest(form) }} - - - + + + {{ form_end(form) }}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/edit.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/edit.html.twig index 34fc61dbc..4680991b3 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/edit.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/edit.html.twig @@ -22,6 +22,8 @@ {% block personcontent %}
+
+

{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName|capitalize } ) }}

@@ -138,9 +140,11 @@ {{ form_end(form) }} +
+
{% endblock personcontent %} {% block js %} - + {{ encore_entry_link_tags('person') }} {% endblock js %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig index 4f7c269aa..8d58c9178 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig @@ -38,7 +38,7 @@ This view should receive those arguments: {% block personcontent %}
-
+
{% if person.memo is not empty and chill_person.fields.memo == 'visible' %} @@ -248,7 +248,7 @@ This view should receive those arguments:
{% if is_granted('CHILL_PERSON_UPDATE', person) %} -