household address: init vue component for household address

This commit is contained in:
nobohan
2021-06-04 14:50:51 +02:00
parent 878ee5d9c7
commit 7e1b7b7e9f
7 changed files with 147 additions and 36 deletions

View File

@@ -9,14 +9,17 @@
<div>
<h2>Select an existing address</h2>
TODO: select of existing address !?
TODO: select of existing address ?
</div>
<div>
<h2>Create a new address</h2>
<div id="address"></div>
</div>
<div>
<h2>Add the address to the household</h2>
<div id="household-address"></div>
</div>
{% block stylesheets %}
@@ -24,7 +27,11 @@
{% endblock %}
{% block js %}
{{ encore_entry_script_tags('address') }}
<script type="text/javascript">
window.householdId = {{ household.id|e('js') }};
window.vueRootComponent = 'app';
</script>
{{ encore_entry_script_tags('household_address') }}
{% endblock %}