fix the modify address
This commit is contained in:
parent
83ae4665f0
commit
eec5afdf39
|
@ -32,6 +32,7 @@ views:
|
||||||
update:
|
update:
|
||||||
files:
|
files:
|
||||||
- web/layouts/_partials/address_autocomplete.html
|
- web/layouts/_partials/address_autocomplete.html
|
||||||
|
- web/layouts/agenda/_partials/address.html
|
||||||
- web/layouts/beneficiaries/update.html
|
- web/layouts/beneficiaries/update.html
|
||||||
members:
|
members:
|
||||||
display:
|
display:
|
||||||
|
|
|
@ -162,9 +162,13 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-5 space-y-6 md:mt-0 md:col-span-2">
|
<div class="mt-5 space-y-6 md:mt-0 md:col-span-2">
|
||||||
|
|
||||||
{{ $fieldName := "address" }}
|
{{ $fieldName := "address" }}
|
||||||
{{ template "address_autocomplete" (dict "FieldName" $fieldName "Address" .ViewState.Data.address) }}
|
{{if .ViewState.Data.address}}
|
||||||
<!-- will dolater : tags, groups, ... -->
|
{{$default := .ViewState.Data.address}}
|
||||||
|
{{ template "address" dict "FieldName" $fieldName "Default" $default}}
|
||||||
|
{{else}}
|
||||||
|
{{ template "address_autocomplete" dict "FieldName" $fieldName}}
|
||||||
|
{{end}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue