-
-
+
+ {% block sublayout_content %}
+
+
{# Flash messages ! #}
{% if app.session.flashbag.all()|length > 0 %}
-
-
+
+
{% for flashMessage in app.session.flashbag.get('success') %}
{{ flashMessage|raw }}
@@ -75,13 +76,13 @@
{% endif %}
{% block content %}
-
{{ include('@ChillMain/Layout/_footer.html.twig') }}
diff --git a/src/Bundle/ChillMainBundle/Resources/views/layoutWithVerticalMenu.html.twig b/src/Bundle/ChillMainBundle/Resources/views/layoutWithVerticalMenu.html.twig
index 21a56b027..a5b43a9e1 100644
--- a/src/Bundle/ChillMainBundle/Resources/views/layoutWithVerticalMenu.html.twig
+++ b/src/Bundle/ChillMainBundle/Resources/views/layoutWithVerticalMenu.html.twig
@@ -24,42 +24,40 @@
{% extends "@ChillMain/layout.html.twig" %}
{% block sublayout_content %}
-
+
+ {% endblock %}
+
- {% endblock %}
{{ 'Search'|trans }}
-
-
-
- {# Flash messages ! #}
- {% if app.session.flashbag.all()|length > 0 %}
-
-
- {% for flashMessage in app.session.flashbag.get('success') %}
-
{% endblock %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/layout.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/layout.html.twig
index c04be7180..8ccccb3d4 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/layout.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/layout.html.twig
@@ -5,7 +5,7 @@
{% endblock %}
{% block layout_wvm_content %}
-
- {{ flashMessage|raw }}
-
- {% endfor %}
+
+
+
- {% for flashMessage in app.session.flashbag.get('error') %}
-
-
- {{ flashMessage|raw }}
-
- {% endfor %}
+ {# Flash messages ! #}
+ {% if app.session.flashbag.all()|length > 0 %}
+
- {% for flashMessage in app.session.flashbag.get('notice') %}
-
- {% endif %}
+ {% for flashMessage in app.session.flashbag.get('success') %}
+
- {{ flashMessage|raw }}
-
- {% endfor %}
-
-
+ {{ flashMessage|raw }}
+
+ {% endfor %}
+
+ {% for flashMessage in app.session.flashbag.get('error') %}
+
+ {{ flashMessage|raw }}
+
+ {% endfor %}
+
+ {% for flashMessage in app.session.flashbag.get('notice') %}
+
+ {{ flashMessage|raw }}
+
+ {% endfor %}
- {% block layout_wvm_content %}
- {% endblock %}
-
- {% block vertical_menu_content %}
- {% endblock %}
+ {% endif %}
+
+ {% block layout_wvm_content %}
+ {% endblock %}
+
+ {% block vertical_menu_content %}
+ {% endblock %}
+
{% block content %}{% endblock %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Household/layout.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Household/layout.html.twig
index d83baeb54..d97de654f 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/Household/layout.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/Household/layout.html.twig
@@ -5,7 +5,7 @@
{% endblock %}
{% block layout_wvm_content %}
-
+
{% block content %}{% endblock %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig
index 9d17cba9d..3725684c8 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig
@@ -19,37 +19,34 @@
{% block title %}{{ 'Add a person'|trans }}{% endblock title %}
{% block content %}
-
-
-
-
+
- {{ form_start(form) }}
-
-
-
- {{ 'Add a person'|trans }}
- - {{ form_row(form.firstName, { 'label' : 'First name'|trans }) }} - - {{ form_row(form.lastName, { 'label' : 'Last name'|trans }) }} - - {% if form.altNames is defined %} - {{ form_widget(form.altNames) }} - {% endif %} - - {{ form_row(form.birthdate, { 'label' : 'Date of birth'|trans }) }} - - {{ form_row(form.gender, { 'label' : 'Gender'|trans }) }} - - {{ form_row(form.creation_date, { 'label' : 'Creation date'|trans }) }} - - {{ form_rest(form) }} - - - - {{ form_end(form) }} -
+
+ {{ form_start(form) }}
+
+
{% endblock content %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/layout.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/layout.html.twig
index 0a2c862b3..677829066 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/Person/layout.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/layout.html.twig
@@ -23,7 +23,7 @@
{% endblock %}
{% block layout_wvm_content %}
- {{ 'Add a person'|trans }}
+ + {{ form_row(form.firstName, { 'label' : 'First name'|trans }) }} + + {{ form_row(form.lastName, { 'label' : 'Last name'|trans }) }} + + {% if form.altNames is defined %} + {{ form_widget(form.altNames) }} + {% endif %} + + {{ form_row(form.birthdate, { 'label' : 'Date of birth'|trans }) }} + + {{ form_row(form.gender, { 'label' : 'Gender'|trans }) }} + + {{ form_row(form.creation_date, { 'label' : 'Creation date'|trans }) }} + + {{ form_rest(form) }} + + + + {{ form_end(form) }} + +
+
{% block personcontent %}{# block personcontent empty #}{% endblock %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_add_a_person.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_add_a_person.html.twig
index 57a5b6059..92f5b9313 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_add_a_person.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_add_a_person.html.twig
@@ -1,9 +1,11 @@
{% if is_granted('CHILL_PERSON_CREATE') %}
-
-
-
- {{ 'Add a person'|trans }}
-
-
+
{% endif %}