mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fixed: [address] Add missing window.addaddress in person create page, and third party create and update page
This commit is contained in:
parent
8894491dac
commit
448d93cd02
@ -19,7 +19,6 @@ const addAddressInput = (inputs) => {
|
||||
if (container === null) {
|
||||
throw Error("no container");
|
||||
}
|
||||
console.log('useValidFrom', el.dataset.useValidFrom === '1');
|
||||
|
||||
const app = createApp({
|
||||
template: `<app v-bind:addAddress="this.addAddress" @address-created="associateToInput"></app>`,
|
||||
@ -34,6 +33,7 @@ const addAddressInput = (inputs) => {
|
||||
},
|
||||
edit: isEdit,
|
||||
addressId: addressIdInt,
|
||||
defaults: window.addaddress,
|
||||
},
|
||||
options: {
|
||||
/// Options override default.
|
||||
|
@ -143,6 +143,9 @@
|
||||
{{ encore_entry_script_tags('page_suggest_names') }}
|
||||
{{ encore_entry_script_tags('page_create_person') }}
|
||||
{{ encore_entry_script_tags('mod_input_address') }}
|
||||
<script type="text/javascript">
|
||||
window.addaddress = {{ add_address|json_encode|raw }};
|
||||
</script>
|
||||
{% endblock js %}
|
||||
|
||||
{% block css %}
|
||||
|
@ -22,6 +22,9 @@
|
||||
|
||||
{% block js %}
|
||||
{{ encore_entry_script_tags('mod_input_address') }}
|
||||
<script type="text/javascript">
|
||||
window.addaddress = {{ add_address|json_encode|raw }};
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block css %}
|
||||
|
@ -38,6 +38,9 @@
|
||||
|
||||
{% block js %}
|
||||
{{ encore_entry_script_tags('mod_input_address') }}
|
||||
<script type="text/javascript">
|
||||
window.addaddress = {{ add_address|json_encode|raw }};
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block css %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user