[household member editor] integrate with adresses and course

* redirection to a returnPath given into query search
* button for creating address
This commit is contained in:
2021-08-18 20:52:23 +02:00
parent c16c517e97
commit 07030922e8
6 changed files with 97 additions and 405 deletions

View File

@@ -14,7 +14,7 @@
<div id="withoutHouseholdList" class="collapse p-3">
<form method="GET"
action="{{ chill_path_add_return_path('chill_person_household_members_editor') }}">
action="{{ path('chill_person_household_members_editor') }}">
<h3>{{ 'household.Select people to move'|trans }}</h3>
<ul>
@@ -27,6 +27,7 @@
</ul>
<input type="hidden" name="expand_suggestions" value="true" />
<input type="hidden" name="returnPath" value="{{ app.request.requestUri|escape('html_attr') }}" />
<input type="hidden" name="accompanying_period_id" value="{{ accompanyingCourse.id }}" />
<ul class="record_actions mb-0">
<li>

View File

@@ -1,4 +1,4 @@
{% extends accompanyingCourse != null ? '@ChillPerson/AccompanyingCourse/layout.html.twig'
{% extends accompanyingCourse != null ? '@ChillPerson/AccompanyingCourse/layout.html.twig'
: '@ChillMain/layout.html.twig' %}
{% block title 'household.Edit household members'|trans %}
@@ -13,11 +13,12 @@
{% endblock %}
{% block js %}
<script type="text/javascript">
window.household_members_editor_data = {{ data|json_encode|raw }};
window.household_members_editor_expand_suggestions = {{ expandSuggestions }};
</script>
{{ encore_entry_script_tags('vue_household_members_editor') }}
{{ parent() }}
<script type="text/javascript">
window.household_members_editor_data = {{ data|json_encode|raw }};
window.household_members_editor_expand_suggestions = {{ expandSuggestions }};
</script>
{{ encore_entry_script_tags('vue_household_members_editor') }}
{% endblock %}
{% block css %}