Fix document update issue

This commit is contained in:
Arnaud Delcasse 2023-03-15 16:48:09 +01:00
parent 9f4d331959
commit a11ed1c595
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ x-data="{
{{end}}
<h3 class="text-lg">Ajouter un document</h3>
<form method="POST" action="/app/beneficiaries/e7616eac-4a87-4396-a505-23e0421b9c4c/documents" @submit="submit" enctype="multipart/form-data">
<form method="POST" action="/app/beneficiaries/{{.ViewState.beneficiary.ID}}/documents" @submit="submit" enctype="multipart/form-data">
<div class="md:grid md:grid-cols-6 p-2">
<div class="sm:col-span-2">
<label for="type" class="block text-sm font-medium text-gray-700">Type</label>
@ -132,4 +132,4 @@ x-data="{
</form>
</div>
{{end}}
{{end}}