mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Migrated some smaller utilities to BS5.
This commit is contained in:
parent
a07c43ea8a
commit
d16c01ebe0
9 changed files with 15 additions and 15 deletions
|
@ -140,7 +140,7 @@
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
{{ form_widget(form.save) }}
|
{{ form_widget(form.save) }}
|
||||||
<button type="button" class="btn {% if entity.id is not null %}btn-primary{% else %}btn-success{% endif %} dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button type="button" class="btn {% if entity.id is not null %}btn-primary{% else %}btn-success{% endif %} 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>
|
</button>
|
||||||
<div class="dropdown-menu p-2">
|
<div class="dropdown-menu p-2">
|
||||||
{{ form_row(form.log_comment)}}
|
{{ form_row(form.log_comment)}}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn btn-danger" {% if delete_disabled %}disabled{% endif %}>{% trans %}entity.delete{% endtrans %}</button>
|
<button class="btn btn-danger" {% if delete_disabled %}disabled{% endif %}>{% trans %}entity.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">
|
<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>
|
</button>
|
||||||
<div class="dropdown-menu p-2">
|
<div class="dropdown-menu p-2">
|
||||||
<div class="form-group"><label for="delete_log_comment">{% trans %}edit.log_comment{% endtrans %}</label>
|
<div class="form-group"><label for="delete_log_comment">{% trans %}edit.log_comment{% endtrans %}</label>
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
{{ form_widget(form.save) }}
|
{{ 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">
|
<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>
|
</button>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
{{ form_widget(form.save_and_clone, {'attr': {'class': 'dropdown-item'}}) }}
|
{{ form_widget(form.save_and_clone, {'attr': {'class': 'dropdown-item'}}) }}
|
||||||
|
|
|
@ -23,11 +23,11 @@
|
||||||
{% if pictures | length > 1 %}
|
{% if pictures | length > 1 %}
|
||||||
<a class="carousel-control-prev carousel-control" href="#pictureCarousel" role="button" data-slide="prev">
|
<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="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>
|
||||||
<a class="carousel-control-next carousel-control" href="#pictureCarousel" role="button" data-slide="next">
|
<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="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>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
{% trans %}part.delete{% endtrans %}
|
{% trans %}part.delete{% endtrans %}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-danger dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<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>
|
</button>
|
||||||
<div class="dropdown-menu p-2">
|
<div class="dropdown-menu p-2">
|
||||||
<div class="form-group"><label for="delete_log_comment">{% trans %}edit.log_comment{% endtrans %}</label>
|
<div class="form-group"><label for="delete_log_comment">{% trans %}edit.log_comment{% endtrans %}</label>
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
{% block quick_links %}{% endblock %}
|
{% 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 %}
|
<i class="fas fa-edit"></i> {% trans %}entity.edit.btn{% endtrans %}
|
||||||
</a>
|
</a>
|
||||||
<div class="">
|
<div class="">
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if entity is instanceof("App\\Entity\\Parts\\Storelocation") %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<div class="btn-group btn-block">
|
<div class="btn-group">
|
||||||
{% if entity.website is not empty %}
|
{% if entity.website is not empty %}
|
||||||
<a class="btn btn-outline-dark" href="{{ entity.website }}" title="{% trans %}company.edit.quick.website{% endtrans %}" data-turbo="false"><i class="fas fa-globe fa-fw"></i></a>
|
<a class="btn btn-outline-secondary" href="{{ entity.website }}" title="{% trans %}company.edit.quick.website{% endtrans %}" data-turbo="false"><i class="fas fa-globe fa-fw"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if entity.emailAddress is not empty %}
|
{% if entity.emailAddress is not empty %}
|
||||||
<a class="btn btn-outline-dark" href="mailto:{{ entity.emailAddress }}" title="{% trans %}company.edit.quick.email{% endtrans %}" data-turbo="false"><i class="fas fa-envelope-open-text"></i></a>
|
<a class="btn btn-outline-secondary" href="mailto:{{ entity.emailAddress }}" title="{% trans %}company.edit.quick.email{% endtrans %}" data-turbo="false"><i class="fas fa-envelope-open-text"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if entity.phoneNumber is not empty %}
|
{% if entity.phoneNumber is not empty %}
|
||||||
<a class="btn btn-outline-dark" href="tel:{{ entity.phoneNumber | replace({' ': ''}) }}" title="{% trans %}company.edit.quick.phone{% endtrans %}" data-turbo="false"><i class="fas fa-phone"></i></a>
|
<a class="btn btn-outline-secondary" href="tel:{{ entity.phoneNumber | replace({' ': ''}) }}" title="{% trans %}company.edit.quick.phone{% endtrans %}" data-turbo="false"><i class="fas fa-phone"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if entity.faxNumber is not empty %}
|
{% if entity.faxNumber is not empty %}
|
||||||
<a class="btn btn-outline-dark" href="tel:{{ entity.faxNumber | replace({' ': ''}) }}" title="{% trans %}company.edit.quick.fax{% endtrans %}" data-turbo="false"><i class="fas fa-fax"></i></a>
|
<a class="btn btn-outline-secondary" href="tel:{{ entity.faxNumber | replace({' ': ''}) }}" title="{% trans %}company.edit.quick.fax{% endtrans %}" data-turbo="false"><i class="fas fa-fax"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -20,7 +20,7 @@
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<ul class="row list-unstyled" id="backup_codes_list">
|
<ul class="row list-unstyled" id="backup_codes_list">
|
||||||
{% for code in user.backupCodes %}
|
{% for code in user.backupCodes %}
|
||||||
<h4 class="col-6"><li><i class="far fa-square fa-fw"></i><span class="text-monospace text-dark ms-1">{{ code }}</span></li></h4>
|
<h4 class="col-6"><li><i class="far fa-square fa-fw"></i><span class="font-monospace text-dark ms-1">{{ code }}</span></li></h4>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<nav class="navbar navbar-expand-md navbar-light bg-light border-bottom shadow-sm fixed-top py-0" id="navbar">
|
<nav class="navbar navbar-expand-md navbar-light bg-light border-bottom shadow-sm fixed-top py-0" id="navbar">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-target="#sidebar-container">
|
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-target="#sidebar-container">
|
||||||
<span class="sr-only">{% trans %}sidebar.toggle{% endtrans %}</span>
|
<span class="visually-hidden">{% trans %}sidebar.toggle{% endtrans %}</span>
|
||||||
<!-- <span class="navbar-toggler-icon"></span> -->
|
<!-- <span class="navbar-toggler-icon"></span> -->
|
||||||
<i class="fas fa-folder-open fa-lg fa-fw"></i>
|
<i class="fas fa-folder-open fa-lg fa-fw"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue