minor class renaming

This commit is contained in:
Mathieu Jaumotte 2021-07-30 18:39:57 +02:00
parent b683e60cf7
commit f9735823c7
2 changed files with 8 additions and 6 deletions

View File

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

View File

@ -24,7 +24,7 @@
{{ _self.extended(address, options) }}
{% endif %}
{% if address.postCode is not empty %}
<p class="postalcode">
<p class="postcode">
<span class="code">{{ address.postCode.code }}</span>
<span class="name">{{ address.postCode.name }}</span>
</p>
@ -71,12 +71,12 @@
{% macro validity(address, options) %}
{%- if options['with_valid_from'] == true -%}
<span class="address-since">
<span class="address-valid address-since">
{{ 'Since %date%'|trans( { '%date%' : address.validFrom|format_date('long') } ) }}
</span>
{%- endif -%}
{%- if options['with_valid_to'] == true -%}
<span class="address-until">
<span class="address-valid address-until">
{{ 'Until %date%'|trans( { '%date%' : address.validTo|format_date('long') } ) }}
</span>
{%- endif -%}