Show maximum allowed file size below the upload field for attachments

This commit is contained in:
Jan Böhmer 2023-03-02 23:38:23 +01:00
parent 6fa5efc4ca
commit e0635f7ead
10 changed files with 2572 additions and 2487 deletions

View file

@ -106,7 +106,21 @@
<tr {{ stimulus_controller('elements/attachmenttype_change') }}>
<td>
{{ form_widget(form) }}
{{ form_row(form.name) }}
{{ form_row(form.attachment_type) }}
{{ form_row(form.secureFile) }}
{{ form_row(form.showInTable) }}
{{ form_row(form.url) }}
{{ form_row(form.downloadURL) }}
<div class="mb-2 row">
{{ form_label(form.file) }}
<div class="col-sm-9">
{{ form_widget(form.file) }}
<small class="text-muted">{% trans %}attachment.max_file_size{% endtrans %}: {{ max_upload_size | format_bytes }}</small>
</div>
</div>
</td>
<td>
<button type="button" class="btn btn-danger lot_btn_delete" {{ collection.delete_btn() }}>