Skip to content

Commit 2b45d3c

Browse files
committed
[BootstrapAdminUi] add a footer
1 parent ee84863 commit 2b45d3c

File tree

11 files changed

+92
-0
lines changed

11 files changed

+92
-0
lines changed

src/BootstrapAdminUi/config/app/twig_hooks/common/create.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
'content' => [
4242
'template' => '@SyliusBootstrapAdminUi/shared/crud/common/content.html.twig',
4343
],
44+
'footer' => [
45+
'template' => '@SyliusBootstrapAdminUi/shared/crud/common/content/footer.html.twig',
46+
'priority' => -100,
47+
],
4448
],
4549

4650
'sylius_admin.common.create.content' => [

src/BootstrapAdminUi/config/app/twig_hooks/common/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
'grid' => [
5454
'template' => '@SyliusBootstrapAdminUi/shared/crud/index/content/grid.html.twig',
5555
],
56+
'footer' => [
57+
'template' => '@SyliusBootstrapAdminUi/shared/crud/common/content/footer.html.twig',
58+
'priority' => -100,
59+
],
5660
],
5761

5862
'sylius_admin.common.index.content.header' => [

src/BootstrapAdminUi/config/app/twig_hooks/common/show.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
'content' => [
4242
'template' => '@SyliusBootstrapAdminUi/shared/crud/common/content.html.twig',
4343
],
44+
'footer' => [
45+
'template' => '@SyliusBootstrapAdminUi/shared/crud/common/content/footer.html.twig',
46+
'priority' => -100,
47+
],
4448
],
4549

4650
'sylius_admin.common.show.content' => [

src/BootstrapAdminUi/config/app/twig_hooks/common/update.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
'content' => [
4242
'template' => '@SyliusBootstrapAdminUi/shared/crud/common/content.html.twig',
4343
],
44+
'footer' => [
45+
'template' => '@SyliusBootstrapAdminUi/shared/crud/common/content/footer.html.twig',
46+
'priority' => -100,
47+
],
4448
],
4549

4650
'sylius_admin.common.update.content' => [
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<footer class="footer footer-transparent d-print-none">
2+
<div class="container-xl">
3+
<div class="row text-center align-items-center">
4+
<div class="col-12 col-lg-12">
5+
<ul class="list-inline list-inline-dots">
6+
<li class="list-inline-item">
7+
{{ 'sylius.ui.copyright'|trans }} © {{ 'now'|date("Y") }}
8+
<a href="https://sylius.com/" target="_blank" class="link-secondary">Sylius</a>.
9+
{{ 'sylius.ui.all_rights_reserved'|trans }}.
10+
</li>
11+
</ul>
12+
</div>
13+
14+
<div class="col-lg-12 ms-lg-auto">
15+
<ul class="list-inline list-inline-dots m-1">
16+
<li class="list-inline-item">
17+
<a href="https://stack.sylius.com" target="_blank" class="link-secondary" rel="noopener">
18+
{{ 'sylius.ui.documentation'|trans }}
19+
</a></li>
20+
<li class="list-inline-item">
21+
<a href="https://github.com/Sylius/Stack?tab=MIT-1-ov-file#readme" target="_blank"
22+
class="link-secondary" rel="noopener">
23+
{{ 'sylius.ui.license'|trans }}
24+
</a>
25+
</li>
26+
<li class="list-inline-item">
27+
<a href="https://github.com/Sylius/Stack" target="_blank" class="link-secondary"
28+
rel="noopener">
29+
{{ 'sylius.ui.source_code'|trans }}
30+
</a>
31+
</li>
32+
<li class="list-inline-item">
33+
<a href="https://github.com/Sylius/Stack/issues" target="_blank" class="link-secondary"
34+
rel="noopener">
35+
{{ 'sylius.ui.see_issue'|trans }}? {{ 'sylius.ui.report_it'|trans }}!
36+
</a>
37+
</li>
38+
</ul>
39+
</div>
40+
</div>
41+
</div>
42+
</footer>

src/UiTranslations/translations/messages.de.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ sylius:
1616
dashboard: 'Dashboard'
1717
delete: 'Löschen'
1818
details: 'Details'
19+
documentation: 'Dokumentation'
1920
edit: 'Bearbeiten'
2021
empty: 'Leer'
2122
equal: 'Gleich'
@@ -38,10 +39,12 @@ sylius:
3839
not_in: 'Nicht in'
3940
pagination:
4041
number_of_results: 'Zeigt %from% - %to% von %total% Einträgen'
42+
report_it: 'Hier melden'
4143
reset: 'Zurücksetzen'
4244
search: 'Suche'
4345
search_menu: 'Menü durchsuchen'
4446
search_products: 'Artikel suchen'
47+
see_issue: 'Fehler gefunden'
4548
show: 'Anzeigen'
4649
starts_with: 'Beginnt mit'
4750
success: 'Erfolgreich'

src/UiTranslations/translations/messages.en.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ sylius:
99
add_new_entry: Add a new entry
1010
administration_panel_login: 'Administration panel login'
1111
all: All
12+
all_rights_reserved: 'All rights reserved'
1213
are_your_sure_you_want_to_perform_this_action: 'Are you sure you want to perform this action?'
1314
cancel: Cancel
15+
copyright: Copyright
1416
contains: Contains
1517
create: Create
1618
dashboard: Dashboard
1719
date_filter: '%label% | %altLabel%'
1820
delete: Delete
1921
details: Details
22+
documentation: 'Documentation'
2023
edit: Edit
2124
empty: 'Empty'
2225
equal: 'Equal'
@@ -28,6 +31,7 @@ sylius:
2831
hello: Hello
2932
in: 'In'
3033
info: Info
34+
license: 'License'
3135
login: Login
3236
login_to_your_account: 'Login to your account'
3337
logout: Logout
@@ -41,10 +45,13 @@ sylius:
4145
not_in: 'Not in'
4246
pagination:
4347
number_of_results: 'Showing %from% to %to% of %total% entries'
48+
report_it: 'Report it'
4449
reset: Reset
4550
search: Search
4651
search_menu: 'Search menu'
52+
see_issue: 'See an issue'
4753
show: Show
54+
source_code: 'Source code'
4855
starts_with: 'Starts with'
4956
success: Success
5057
this_form_contains_errors: 'This form contains errors.'

src/UiTranslations/translations/messages.es.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ sylius:
1515
dashboard: 'Panel general'
1616
delete: 'Eliminar'
1717
details: 'Detalles'
18+
documentation: 'Documentación'
1819
edit: 'Editar'
1920
empty: 'Vacío'
2021
ends_with: 'Termina en'
@@ -35,8 +36,10 @@ sylius:
3536
not_empty: 'No está vacío'
3637
not_equal: 'No igual'
3738
not_in: 'No en'
39+
report_it: 'Informar'
3840
reset: 'Restablecer'
3941
search: 'Búsqueda'
42+
see_issue: 'Ver incidencia'
4043
show: 'Mostrar'
4144
starts_with: 'Comienza por'
4245
success: 'Operación realizada correctamente'

src/UiTranslations/translations/messages.fr.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ sylius:
99
add_new_entry: 'Nouvel item'
1010
administration_panel_login: 'Connexion à l''espace d''administration'
1111
all: 'Tous'
12+
all_rights_reserved: Tous droits réservés
1213
are_your_sure_you_want_to_perform_this_action: 'Êtes-vous sûr(e) de vouloir effectuer cette action ?'
1314
cancel: 'Annuler'
15+
copyright: Copyright
1416
contains: 'Contient'
1517
create: 'Créer'
1618
dashboard: 'Tableau de bord'
1719
date_filter: '%label% | %altLabel%'
1820
delete: 'Supprimer'
1921
details: 'Détails'
22+
documentation: Documentation
2023
edit: 'Modifier'
2124
empty: 'Vide'
2225
ends_with: 'Se termine par'
@@ -28,6 +31,7 @@ sylius:
2831
hello: 'Bonjour'
2932
in: 'Dans'
3033
info: 'Info'
34+
license: Licence
3135
login: 'Connexion'
3236
login_to_your_account: 'Connexion à votre compte'
3337
logout: 'Déconnexion'
@@ -41,10 +45,13 @@ sylius:
4145
not_in: 'Pas dans'
4246
pagination:
4347
number_of_results: 'Affiche de %from% à %to% sur %total% items'
48+
report_it: Signalez le
4449
reset: 'Réinitialiser'
4550
search: 'Rechercher'
4651
search_menu: 'Recherche menu'
52+
see_issue: Vous avez trouvé un bug
4753
show: 'Afficher'
54+
source_code: Code source
4855
starts_with: 'Commence par'
4956
success: 'Succès'
5057
this_form_contains_errors: 'Ce formulaire contient des erreurs.'

src/UiTranslations/translations/messages.nl.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ sylius:
99
add_new_entry: Nieuw item toevoegen
1010
administration_panel_login: 'Administratiepaneel login'
1111
all: Alles
12+
all_rights_reserved: 'Alle rechten voorbehouden'
1213
are_your_sure_you_want_to_perform_this_action: 'Weet je zeker dat je daze actie wilt uitvoeren?'
1314
cancel: Annuleren
1415
contains: Bevat
16+
copyright: 'Copyright'
1517
create: Creëer
1618
dashboard: Dashboard
1719
date_filter: '%label% | %altLabel%'
1820
delete: Verwijderen
1921
details: Details
22+
documentation: 'Documentatie'
2023
edit: Bewerken
2124
empty: 'Leeg'
2225
equal: 'Gelijk aan'
@@ -28,6 +31,7 @@ sylius:
2831
hello: Hallo
2932
in: 'In'
3033
info: Info
34+
license: 'Licentie'
3135
login: Inloggen
3236
login_to_your_account: 'Inloggen op jouw account'
3337
logout: Uitloggen
@@ -41,9 +45,12 @@ sylius:
4145
not_in: 'Niet in'
4246
pagination:
4347
number_of_results: 'Toont %from% tot %to% van %total% resultaten'
48+
report_it: 'Meld het'
4449
reset: Resetten
4550
search: Zoeken
4651
search_menu: 'Zoek in menu'
52+
see_issue: 'Bekijk probleem'
53+
source_code: 'Broncode'
4754
show: Tonen
4855
starts_with: 'Begint met'
4956
success: Succes

0 commit comments

Comments
 (0)