mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 00:53:48 +00:00
adding twig helper for routing and more
This commit is contained in:
11
Resources/config/services/templating.yml
Normal file
11
Resources/config/services/templating.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
Chill\MainBundle\Templating\ChillTwigHelper:
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
Chill\MainBundle\Templating\ChillTwigRoutingHelper:
|
||||
arguments:
|
||||
$requestStack: '@Symfony\Component\HttpFoundation\RequestStack'
|
||||
$originalExtension: '@twig.extension.routing'
|
||||
tags:
|
||||
- { name: twig.extension }
|
@@ -12,6 +12,7 @@
|
||||
@import 'custom/address';
|
||||
@import 'custom/record_actions';
|
||||
@import 'custom/flash_messages';
|
||||
@import 'custom/box';
|
||||
|
||||
|
||||
html,body {
|
||||
|
24
Resources/public/sass/custom/_box.scss
Normal file
24
Resources/public/sass/custom/_box.scss
Normal file
@@ -0,0 +1,24 @@
|
||||
.chill__box {
|
||||
font-variant: small-caps;
|
||||
display: inline;
|
||||
padding: .2em .6em .3em;
|
||||
font-size: 0.88rem;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: baseline;
|
||||
border-radius: .25em;
|
||||
color: white;
|
||||
|
||||
&.green {
|
||||
background-color: var(--chill-green);
|
||||
color: white;
|
||||
}
|
||||
|
||||
&.red {
|
||||
background-color: var(--chill-red);
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
@@ -39,6 +39,12 @@ Edit: Modifier
|
||||
Update: Mettre à jour
|
||||
Back to the list: Retour à la liste
|
||||
|
||||
#elements used in software
|
||||
centers: centres
|
||||
Centers: Centres
|
||||
comment: commentaire
|
||||
Comment: Commentaire
|
||||
|
||||
#pagination
|
||||
Previous: Précédent
|
||||
Next: Suivant
|
||||
|
@@ -0,0 +1 @@
|
||||
{% if value is not empty %}<blockquote class="chill-user-quote">{{ value|nl2br }}</blockquote>{% else %}<span class="chill-no-data-statement">{{ message|trans }}</span>{% endif %}
|
@@ -0,0 +1 @@
|
||||
{% if value is not empty %}{{ value|trans }}{% else %}<span class="chill-no-data-statement">{{ message|trans }}</span>{% endif %}
|
Reference in New Issue
Block a user