mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 22:46:13 +00:00
classes for address-valid
This commit is contained in:
parent
6c0ab6f25e
commit
b62597426c
@ -94,8 +94,8 @@ section.chill-entity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
span.address-valid {
|
span.address-valid {
|
||||||
&.address-since {}
|
&.date-since {}
|
||||||
&.address-until {}
|
&.date-until {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,8 +58,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="!context.edit" class='person-address__valid'>
|
<div v-if="!context.edit" class='address-valid date-since'>
|
||||||
<h2>{{ $t('date') }}</h2>
|
<h3>{{ $t('date') }}</h3>
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<span class="input-group-text" id="validFrom"><i class="fa fa-fw fa-calendar"></i></span>
|
<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"
|
<input type="date" class="form-control form-control-lg" name="validFrom"
|
||||||
|
@ -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-valid address-since">
|
<span class="address-valid date-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-valid address-until">
|
<span class="address-valid date-until">
|
||||||
{{ 'Until %date%'|trans( { '%date%' : address.validTo|format_date('long') } ) }}
|
{{ 'Until %date%'|trans( { '%date%' : address.validTo|format_date('long') } ) }}
|
||||||
</span>
|
</span>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user