Upload files to a book from show book view.

This commit is contained in:
krzysiej
2022-05-31 15:25:57 +02:00
parent 623aa91872
commit 26bd59f3bb
4 changed files with 87 additions and 9 deletions

View File

@@ -21,7 +21,7 @@
</tr>
<tr>
<th>Description</th>
<td>{{ book.description | nl2br }}</td>
<td>{{ book.description | nl2br }}</td>
</tr>
<tr>
<th>Publisher</th>
@@ -61,6 +61,10 @@
</tr>
{% endfor %}
</table>
{{ form_start(file_form) }}
{{ form_widget(file_form) }}
<button class="btn btn-primary">{{ button_label|default('Save') }}</button>
{{ form_end(file_form) }}
<a href="{{ path('app_book_index') }}">back to list</a>