mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
improve history details
This commit is contained in:
parent
1ceabec400
commit
2cda6ceebf
@ -134,7 +134,7 @@ div#header-household-details {
|
|||||||
* ADDRESS HISTORY
|
* ADDRESS HISTORY
|
||||||
* context person / household
|
* context person / household
|
||||||
*/
|
*/
|
||||||
div.timeline.grid {
|
div.address-timeline.grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: auto auto auto;
|
grid-template-rows: auto auto auto;
|
||||||
grid-template-columns: auto 120px auto;
|
grid-template-columns: auto 120px auto;
|
||||||
@ -180,13 +180,11 @@ div.timeline.grid {
|
|||||||
padding: 1em;
|
padding: 1em;
|
||||||
}
|
}
|
||||||
div.content {
|
div.content {
|
||||||
box-shadow:
|
margin: 0.3em;
|
||||||
1px 0 0 0 #000,
|
border: 1px dashed #00000045;
|
||||||
0 1px 0 0 #000,
|
&.row1 { // current address
|
||||||
1px 1px 0 0 #000,
|
border: 1px solid #000;
|
||||||
1px 0 0 0 #000 inset,
|
}
|
||||||
0 1px 0 0 #000 inset;
|
|
||||||
|
|
||||||
div.address {
|
div.address {
|
||||||
font-variant: small-caps;
|
font-variant: small-caps;
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<h1>{{ 'Addresses\'history for %name%'|trans({ '%name%': person.firstName ~ ' ' ~ person.lastName } ) }}</h1>
|
<h1>{{ 'Addresses\'history for %name%'|trans({ '%name%': person.firstName ~ ' ' ~ person.lastName } ) }}</h1>
|
||||||
|
|
||||||
<div class="person timeline grid">
|
<div class="address-timeline grid">
|
||||||
|
|
||||||
{% if person.addresses|length == 0 %}
|
{% if person.addresses|length == 0 %}
|
||||||
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
|
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
|
||||||
@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
{# if household address #}{#
|
{# if household address #}{#
|
||||||
<div class="col-c content rowXX">
|
<div class="col-c content rowXX">
|
||||||
<div class="address"></div>
|
<div class="address">...</div>
|
||||||
</div>
|
</div>
|
||||||
#}{# endif #}
|
#}{# endif #}
|
||||||
|
|
||||||
|
@ -5,63 +5,65 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ block('title') }}</h1>
|
<h1>{{ block('title') }}</h1>
|
||||||
|
|
||||||
<div class="household address">
|
<div class="address-timeline grid">
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="date"></div>
|
|
||||||
<div class="content">
|
|
||||||
<div class="cell">
|
|
||||||
<a class="sc-button bt-create"
|
|
||||||
href="{{ chill_path_add_return_path('chill_person_household_address_move', { 'household_id': household.id }) }}">
|
|
||||||
{{ 'Move household'|trans }}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
{% if household.addresses|length == 0 %}
|
||||||
|
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
|
||||||
|
{% else %}
|
||||||
|
<div class="top"><i class="fa fa-caret-up fa-3x"></i></div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% for address in household.addresses %}
|
{% for address in household.addresses %}
|
||||||
<div class="row">
|
|
||||||
<div class="date">
|
<div class="col-b"></div>
|
||||||
<div class="cell">
|
|
||||||
<div class="pill">
|
<div class="col-c content{{ ' row' ~ loop.index }}">
|
||||||
{% if address.validFrom is not empty %}
|
<div class="address">
|
||||||
{{ address.validFrom|format_date('long') }}
|
{% if address.isNoAddress == true %}
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content">
|
|
||||||
<div class="cell">
|
|
||||||
<i class="dot"></i>
|
|
||||||
<div>
|
|
||||||
{% if address.isNoAddress == true %}
|
|
||||||
<div class="chill_address_is_noaddress">{{ 'address.consider homeless'|trans }}</div>
|
<div class="chill_address_is_noaddress">{{ 'address.consider homeless'|trans }}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div>
|
{% if address.street is not empty %}
|
||||||
{% if address.street is not empty %}
|
<div class="street">
|
||||||
<div class="street">
|
<span class="streetNumber">{{ address.street }}</span>
|
||||||
<i class="fa fa-fw fa-map-marker"></i>
|
{% if address.streetNumber is not empty %}
|
||||||
<span class="streetNumber">{{ address.street }}</span>
|
<span class="streetNumber">, {{ address.streetNumber }}</span>
|
||||||
{% if address.streetNumber is not empty %}
|
|
||||||
<span class="streetNumber">, {{ address.streetNumber }}</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if address.postCode is not empty %}
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if address.postCode is not empty %}
|
||||||
<div class="postCode">
|
<div class="postCode">
|
||||||
<span>{{ address.postCode.code }}</span> <span>{{ address.postCode.name }}</span>
|
<span>{{ address.postCode.code }}</span> <span>{{ address.postCode.name }}</span>
|
||||||
<span class="country">({{ address.postCode.country.name|localize_translatable_string }})</span>
|
<span class="country">({{ address.postCode.country.name|localize_translatable_string }})</span>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ path('chill_person_household_address_edit', { 'household_id': household.id, 'address_id' : address.id } ) }}" class="sc-button bt-edit"></a>
|
|
||||||
</div>
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<ul class="record_actions">
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('chill_person_household_address_edit', { 'household_id': household.id, 'address_id' : address.id } ) }}" class="sc-button bt-edit"></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
<div class="date">
|
||||||
|
{% if address.validFrom is not empty %}
|
||||||
|
{{ address.validFrom|format_date('long') }}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<ul class="record_actions">
|
||||||
|
<li>
|
||||||
|
<a class="sc-button bt-create"
|
||||||
|
href="{{ chill_path_add_return_path('chill_person_household_address_move', { 'household_id': household.id }) }}">
|
||||||
|
{{ 'Move household'|trans }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user