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: ", "; } &::before { content: ", "; }
} }
} }
&.postalcode { &.postcode {
span.code {} span.code {}
span.name {} span.name {}
} }
@ -87,7 +87,9 @@ section.chill-entity {
font-style: italic; font-style: italic;
} }
span.address-since, span.address-valid {
span.address-until {} &.address-since {}
&.address-until {}
}
} }
} }

View File

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