adding twig helper for routing and more

This commit is contained in:
2019-05-02 23:11:09 +02:00
parent 18463fb18a
commit 45a5583ab8
10 changed files with 226 additions and 0 deletions

View 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 }

View File

@@ -12,6 +12,7 @@
@import 'custom/address';
@import 'custom/record_actions';
@import 'custom/flash_messages';
@import 'custom/box';
html,body {

View 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;
}
}

View File

@@ -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

View File

@@ -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 %}

View File

@@ -0,0 +1 @@
{% if value is not empty %}{{ value|trans }}{% else %}<span class="chill-no-data-statement">{{ message|trans }}</span>{% endif %}