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