classes for address-valid

This commit is contained in:
Mathieu Jaumotte 2021-08-06 16:30:48 +02:00
parent 6c0ab6f25e
commit b62597426c
3 changed files with 6 additions and 6 deletions

View File

@ -94,8 +94,8 @@ section.chill-entity {
}
span.address-valid {
&.address-since {}
&.address-until {}
&.date-since {}
&.date-until {}
}
}

View File

@ -58,8 +58,8 @@
</div>
</div>
<div v-if="!context.edit" class='person-address__valid'>
<h2>{{ $t('date') }}</h2>
<div v-if="!context.edit" class='address-valid date-since'>
<h3>{{ $t('date') }}</h3>
<div class="input-group mb-3">
<span class="input-group-text" id="validFrom"><i class="fa fa-fw fa-calendar"></i></span>
<input type="date" class="form-control form-control-lg" name="validFrom"

View File

@ -71,12 +71,12 @@
{% macro validity(address, options) %}
{%- if options['with_valid_from'] == true -%}
<span class="address-valid address-since">
<span class="address-valid date-since">
{{ 'Since %date%'|trans( { '%date%' : address.validFrom|format_date('long') } ) }}
</span>
{%- endif -%}
{%- if options['with_valid_to'] == true -%}
<span class="address-valid address-until">
<span class="address-valid date-until">
{{ 'Until %date%'|trans( { '%date%' : address.validTo|format_date('long') } ) }}
</span>
{%- endif -%}