Skip to content

Commit c300d45

Browse files
-
1 parent 3ba19d8 commit c300d45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+108
-94
lines changed

.env.dist

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ SECRET_REGISTER=
3333
VAPID_PUBLIC_KEY=
3434
VAPID_PRIVATE_KEY=
3535
SENDER_ADDRESS=
36+
#light theme
37+
#THEME_NAVBAR='navbar sticky-top navbar-expand-lg navbar-light bg-light'
38+
#THEME_CARD='shadow p-3 mb-4 bg-light rounded'
39+
#THEME_TABLE='table table-light table-hover table-sm'
40+
#THEME_LINK_PRIMARY='text-primary'
41+
#THEME_LINK_SECONDARY='text-dark'
42+
#THEME_JUMBOTRON='jumbotron mt-3 bg-secondary text-light border border-light'
3643
#THEME_COLOR_1='light'
3744
#THEME_COLOR_2='dark'
38-
#THEME_COLOR_3='primary'
39-
#THEME_COLOR_4='light'
4045
###< app ###

config/packages/twig.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ twig:
22
default_path: '%kernel.project_dir%/templates'
33
form_themes: ['bootstrap_5_layout.html.twig']
44
globals:
5+
themeNavbar: '%env(THEME_NAVBAR)%'
6+
themeCard: '%env(THEME_CARD)%'
7+
themeTable: '%env(THEME_TABLE)%'
8+
themeLinkPrimary: '%env(THEME_LINK_PRIMARY)%'
9+
themeLinkSecondary: '%env(THEME_LINK_SECONDARY)%'
10+
themeJumbotron: '%env(THEME_JUMBOTRON)%'
511
themeColor1: '%env(THEME_COLOR_1)%'
612
themeColor2: '%env(THEME_COLOR_2)%'
7-
themeColor3: '%env(THEME_COLOR_3)%'
8-
themeColor4: '%env(THEME_COLOR_4)%'

config/services.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44
# Put parameters here that don't need to change on each machine where the app is deployed
55
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
66
parameters:
7+
env(THEME_NAVBAR): 'navbar sticky-top navbar-expand-lg navbar-dark bg-dark'
8+
env(THEME_CARD): 'shadow p-3 mb-4 bg-dark rounded'
9+
env(THEME_TABLE): 'table table-dark table-hover table-sm'
10+
env(THEME_LINK_PRIMARY): 'text-info'
11+
env(THEME_LINK_SECONDARY): 'text-light'
12+
env(THEME_JUMBOTRON): 'jumbotron mt-3 bg-secondary text-light border border-light'
713
env(THEME_COLOR_1): 'dark'
814
env(THEME_COLOR_2): 'light'
9-
env(THEME_COLOR_3): 'info'
10-
env(THEME_COLOR_4): 'secondary'
1115

1216
services:
1317
# default configuration for services in *this* file
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="shadow p-3 mb-4 bg-{{ themeColor1 }} rounded">
1+
<div class="{{ themeCard }}">
22
{% block content %}
33
{% endblock %}
44
</div>

templates/Embed/table_embed.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="table-responsive">
2-
<table class="{% block table_class %}table table-{{ themeColor1 }} table-hover table-sm{% endblock %}">
2+
<table class="{% block table_class %}{{ themeTable }}{% endblock %}">
33

44
<thead>
55
{% block thead %}

templates/Modules/app_role/app_role_create.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{% endblock %}
1313

1414
{% block main_content %}
15-
<div class="jumbotron bg-{{ themeColor4 }} text-{{ themeColor2 }} border border-{{ themeColor2 }}">
15+
<div class="{{ themeJumbotron }} ">
1616
<p class="lead">{{ 'app_users_note'|trans|raw }}</p>
1717
</div>
1818

templates/Modules/app_role/app_role_index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{% endblock %}
1313

1414
{% block main_content %}
15-
<div class="jumbotron bg-{{ themeColor4 }} text-{{ themeColor2 }} border border-{{ themeColor2 }}">
15+
<div class="{{ themeJumbotron }} ">
1616
<p class="lead">{{ 'app_users_note'|trans|raw }}</p>
1717
</div>
1818

templates/Modules/app_role/app_role_list.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{% if true == display %}
3131
{% if 'name' == column %}
3232
<td>
33-
<a class="text-{{ themeColor3 }}" href="{{ path('app_roles_read', {'role': row.name}) }}">{{ row.name }}</a>
33+
<a class="{{ themeLinkPrimary }}" href="{{ path('app_roles_read', {'role': row.name}) }}">{{ row.name }}</a>
3434
</td>
3535
{% endif %}
3636

templates/Modules/app_user/app_user_create.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{% endblock %}
1313

1414
{% block main_content %}
15-
<div class="jumbotron bg-{{ themeColor4 }} text-{{ themeColor2 }} border border-{{ themeColor2 }}">
15+
<div class="{{ themeJumbotron }} ">
1616
<p class="lead">{{ 'app_users_note'|trans|raw }}</p>
1717
</div>
1818

templates/Modules/app_user/app_user_index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{% endblock %}
1313

1414
{% block main_content %}
15-
<div class="jumbotron bg-{{ themeColor4 }} text-{{ themeColor2 }} border border-{{ themeColor2 }}">
15+
<div class="{{ themeJumbotron }} ">
1616
<p class="lead">{{ 'app_users_note'|trans|raw }}</p>
1717
</div>
1818

0 commit comments

Comments
 (0)