Fixed margins of the upload files button

This commit is contained in:
Jan Böhmer 2024-03-02 18:33:20 +01:00
parent b92553f480
commit a6db67ab33

View file

@ -7,20 +7,22 @@
<table class="table table-striped table-sm" {{ collection.target() }}>
<tbody>
{% for attachment in form %}
{{ form_widget(attachment) }}
{{ form_widget(attachment) }}
{% endfor %}
</tbody>
</table>
<button type="button" class="btn btn-success" {{ collection.create_btn() }} {% if part_mode and not is_granted('edit', part) %}disabled{% endif %}>
<i class="fas fa-plus-square fa-fw"></i>
{% trans %}attachment.create{% endtrans %}
</button>
<div class="mb-2">
<button type="button" class="btn btn-success" {{ collection.create_btn() }} {% if part_mode and not is_granted('edit', part) %}disabled{% endif %}>
<i class="fas fa-plus-square fa-fw"></i>
{% trans %}attachment.create{% endtrans %}
</button>
<button type="button" class="btn btn-outline-success" {{ stimulus_action('elements/collection_type', 'uploadMultipleFiles') }} {% if part_mode and not is_granted('edit', part) %}disabled{% endif %}>
<i class="fas fa-upload fa-fw"></i>
{% trans %}attachment.upload_multiple_files{% endtrans %}
</button>
<button type="button" class="btn btn-outline-success" {{ stimulus_action('elements/collection_type', 'uploadMultipleFiles') }} {% if part_mode and not is_granted('edit', part) %}disabled{% endif %}>
<i class="fas fa-upload fa-fw"></i>
{% trans %}attachment.upload_multiple_files{% endtrans %}
</button>
</div>
</div>
{% endmacro %}