Set enctype to multipart/form-data for invoice status form
Since this form is “shared” with the “full” form, that now includes files, it has to be multipart/form-data too.
This commit is contained in:
parent
0fd0cf5a38
commit
2501b7d226
|
@ -90,7 +90,8 @@
|
||||||
<td>
|
<td>
|
||||||
<details class="invoice-status menu">
|
<details class="invoice-status menu">
|
||||||
<summary class="invoice-status-{{ .Status }}">{{ .StatusLabel }}</summary>
|
<summary class="invoice-status-{{ .Status }}">{{ .StatusLabel }}</summary>
|
||||||
<form action="{{companyURI "/invoices/"}}{{ .Slug }}" method="POST" data-hx-boost="true">
|
<form action="{{companyURI "/invoices/"}}{{ .Slug }}" method="POST"
|
||||||
|
enctype="multipart/form-data" data-hx-boost="true">
|
||||||
{{ csrfToken }}
|
{{ csrfToken }}
|
||||||
{{ putMethod }}
|
{{ putMethod }}
|
||||||
<input type="hidden" name="quick" value="status">
|
<input type="hidden" name="quick" value="status">
|
||||||
|
|
Loading…
Reference in New Issue