Migrated some smaller utilities to BS5.

This commit is contained in:
Jan Böhmer 2022-07-24 22:59:19 +02:00
parent a07c43ea8a
commit d16c01ebe0
9 changed files with 15 additions and 15 deletions

View file

@ -100,7 +100,7 @@
<div class="btn-group">
{{ form_widget(form.save) }}
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
{{ form_widget(form.save_and_clone, {'attr': {'class': 'dropdown-item'}}) }}

View file

@ -23,11 +23,11 @@
{% if pictures | length > 1 %}
<a class="carousel-control-prev carousel-control" href="#pictureCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">{% trans %}part.info.prev_picture{% endtrans %}</span>
<span class="visually-hidden">{% trans %}part.info.prev_picture{% endtrans %}</span>
</a>
<a class="carousel-control-next carousel-control" href="#pictureCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">{% trans %}part.info.next_picture{% endtrans %}</span>
<span class="visually-hidden">{% trans %}part.info.next_picture{% endtrans %}</span>
</a>
{% endif %}
</div>

View file

@ -39,7 +39,7 @@
{% trans %}part.delete{% endtrans %}
</button>
<button type="button" class="btn btn-danger dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<div class="dropdown-menu p-2">
<div class="form-group"><label for="delete_log_comment">{% trans %}edit.log_comment{% endtrans %}</label>

View file

@ -68,7 +68,7 @@
<div class="col-sm-3">
{% block quick_links %}{% endblock %}
<a class="btn btn-secondary btn-block mb-2" href="{{ entity | entityURL('edit') }}">
<a class="btn btn-secondary w-100 mb-2" href="{{ entity | entityURL('edit') }}">
<i class="fas fa-edit"></i> {% trans %}entity.edit.btn{% endtrans %}
</a>
<div class="">
@ -82,7 +82,7 @@
</div>
{% if entity is instanceof("App\\Entity\\Parts\\Storelocation") %}
{{ dropdown.profile_dropdown('storelocation', entity.id, true, 'btn-secondary btn-block mt-2') }}
{{ dropdown.profile_dropdown('storelocation', entity.id, true, 'btn-secondary w-100 mt-2') }}
{% endif %}
</div>