Skip to content

Commit 9e78add

Browse files
Merge pull request #55 from sumocoders/394-bootstrap-icons
Replace all icons with bootstrap icons
2 parents 13ce2cd + f4e6314 commit 9e78add

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/EventListener/MenuListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function onConfigureMenu(ConfigureMenuEvent $event): void
2020
[
2121
'route' => 'user_admin_overview',
2222
'labelAttributes' => [
23-
'icon' => 'fas fa-user',
23+
'icon' => 'bi bi-person-fill',
2424
],
2525
'extras' => [
2626
'routes' => [

templates/user/admin/add.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<div class="btn-toolbar mt-4">
1616
<button class="btn btn-primary" type="submit">
17-
<i class="fas fa-plus mr-2"></i>
17+
<i class="bi bi-plus-lg mr-2"></i>
1818
{{ 'Save'|trans }}
1919
</button>
2020
</div>

templates/user/admin/edit.html.twig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
77
{% block header_navigation %}
88
{% if not user.confirmed %}
99
<a class="btn btn-primary" href="{{ path('request_confirmation', {user: user.id}) }}" data-turbo-prefetch="false">
10-
<i class="fas fa-envelope mr-2"></i>
10+
<i class="bi bi-envelope-fill mr-2"></i>
1111
{{ 'Resend confirmation mail'|trans }}
1212
</a>
1313
{% endif %}
1414
{% if user.confirmed and user.enabled %}
1515
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#forgotPasswordModal">
16-
<i class="fas fa-envelope mr-2"></i>
16+
<i class="bi bi-envelope-fill mr-2"></i>
1717
{{ 'Send forgot password mail'|trans }}
1818
</button>
1919
{% endif %}
2020

2121
{% if user.id != app.user.id %}
2222
{% if user.enabled %}
2323
<a class="btn btn-danger ml-2" href="{{ path('user_admin_disable_user', {user: user.id}) }}" data-turbo-prefetch="false">
24-
<i class="fas fa-lock mr-2"></i>
24+
<i class="bi bi-lock mr-2"></i>
2525
{{ 'Disable'|trans }}
2626
</a>
2727
{% else %}
2828
<a class="btn btn-success ml-2" href="{{ path('user_admin_enable_user', {user: user.id}) }}" data-turbo-prefetch="false">
29-
<i class="fas fa-unlock mr-2"></i>
29+
<i class="bi bi-unlock2 mr-2"></i>
3030
{{ 'Enable'|trans }}
3131
</a>
3232
{% endif %}
@@ -43,7 +43,7 @@
4343

4444
<div class="btn-toolbar mt-4">
4545
<button class="btn btn-primary" type="submit">
46-
<i class="fas fa-save mr-2"></i>
46+
<i class="bi bi-floppy-fill mr-2"></i>
4747
{{ 'Save'|trans }}
4848
</button>
4949
</div>
@@ -67,7 +67,7 @@
6767
<div class="modal-footer">
6868
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{{ 'dialogs.buttons.cancel'|trans|ucfirst }}</button>
6969
<button type="submit" name="testingForm" class="btn btn-primary">
70-
<i class="fas fa-envelope mr-2"></i>
70+
<i class="bi bi-envelope-fill mr-2"></i>
7171
{{ 'Send'|trans }}
7272
</button>
7373
</div>

templates/user/admin/overview.html.twig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
{% block header_navigation %}
88
<a class="btn btn-primary" href="{{ path('user_admin_add') }}">
9-
<i class="fas fa-plus mr-2"></i>
9+
<i class="bi bi-plus-lg mr-2"></i>
1010
{{ 'Add a new user'|trans|capitalize }}
1111
</a>
1212
{% endblock %}
@@ -43,30 +43,30 @@
4343
<div>{{ 'Confirmed'|trans }}</div>
4444
<div>
4545
{% if user.confirmed %}
46-
<i class="text-success fas fa-check"></i>
46+
<i class="text-success bi bi-check2"></i>
4747
{% else %}
48-
<i class="text-danger fas fa-times"></i>
48+
<i class="text-danger bi bi-x-lg"></i>
4949
{% endif %}
5050
</div>
5151
</div>
5252
<div class="d-flex justify-content-between">
5353
<div>{{ 'Enabled'|trans }}</div>
5454
<div>
5555
{% if user.enabled %}
56-
<i class="text-success fas fa-check"></i>
56+
<i class="text-success bi bi-check2"></i>
5757
{% else %}
58-
<i class="text-danger fas fa-times"></i>
58+
<i class="text-danger bi bi-x-lg"></i>
5959
{% endif %}
6060
</div>
6161
</div>
6262
</div>
6363
<div class="card-footer">
6464
<a class="text-nowrap btn btn-outline-primary me-3 px-3" href="{{ path('user_admin_edit', {user: user.id}) }}">
65-
<i class="fas fa-edit" title="{{ 'Edit user'|trans }}" data-controller="tooltip" data-bs-placement="top"></i>
65+
<i class="bi bi-pencil-fill" title="{{ 'Edit user'|trans }}" data-controller="tooltip" data-bs-placement="top"></i>
6666
</a>
6767
{% if is_granted('ROLE_ADMIN') %}
6868
<a class="text-nowrap btn btn-outline-primary px-3" href="{{ impersonation_path(user.username) }}" data-turbo-prefetch="false">
69-
<i class="fas fa-sign-in-alt" title="{{ 'Switch to user'|trans }}" data-controller="tooltip" data-bs-placement="top"></i>
69+
<i class="bi bi-box-arrow-in-right" title="{{ 'Switch to user'|trans }}" data-controller="tooltip" data-bs-placement="top"></i>
7070
</a>
7171
{% endif %}
7272
</div>

0 commit comments

Comments
 (0)