From f9735823c7dbba5ffc190f4b62862d8a23a98a53 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 30 Jul 2021 18:39:57 +0200 Subject: [PATCH] minor class renaming --- .../Resources/public/chill/scss/render_box.scss | 8 +++++--- .../Resources/views/Entity/address.html.twig | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/render_box.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/render_box.scss index 2afd59fcb..dd1dc12c5 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/render_box.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/render_box.scss @@ -75,7 +75,7 @@ section.chill-entity { &::before { content: ", "; } } } - &.postalcode { + &.postcode { span.code {} span.name {} } @@ -87,7 +87,9 @@ section.chill-entity { font-style: italic; } - span.address-since, - span.address-until {} + span.address-valid { + &.address-since {} + &.address-until {} + } } } diff --git a/src/Bundle/ChillMainBundle/Resources/views/Entity/address.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Entity/address.html.twig index 95692aca1..7e1c47da4 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Entity/address.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Entity/address.html.twig @@ -24,7 +24,7 @@ {{ _self.extended(address, options) }} {% endif %} {% if address.postCode is not empty %} -

+

{{ address.postCode.code }} {{ address.postCode.name }}

@@ -71,12 +71,12 @@ {% macro validity(address, options) %} {%- if options['with_valid_from'] == true -%} - + {{ 'Since %date%'|trans( { '%date%' : address.validFrom|format_date('long') } ) }} {%- endif -%} {%- if options['with_valid_to'] == true -%} - + {{ 'Until %date%'|trans( { '%date%' : address.validTo|format_date('long') } ) }} {%- endif -%}