fix indentation

This commit is contained in:
Julien Fastré 2021-06-09 22:18:47 +02:00
parent 315fc7f63a
commit 7fddf1d5e0

View File

@ -6,127 +6,127 @@
<h1>{{ block('title') }}</h1> <h1>{{ block('title') }}</h1>
{% for p in positions %} {% for p in positions %}
<h3>{{ p.label|localize_translatable_string }}</h3> <h3>{{ p.label|localize_translatable_string }}</h3>
{% if false == p.shareHousehold %} {% if false == p.shareHousehold %}
<p>{{ 'household.Those members does not share address'|trans }}</p> <p>{{ 'household.Those members does not share address'|trans }}</p>
{% endif %} {% endif %}
{%- set members = household.currentMembersByPosition(p) %} {%- set members = household.currentMembersByPosition(p) %}
{% if members|length > 0 %} {% if members|length > 0 %}
<div class="flex-table list-household-members"> <div class="flex-table list-household-members">
{% for m in members %} {% for m in members %}
<div class="item-bloc"> <div class="item-bloc">
<div class="item-row person"> <div class="item-row person">
<div class="item-col box-person"> <div class="item-col box-person">
<div> <div>
{{ m.person|chill_entity_render_box({'addLink': true}) }} {{ m.person|chill_entity_render_box({'addLink': true}) }}
{% if m.holder %} {% if m.holder %}
<span class="badge badge-primary">{{ 'household.holder'|trans }}</span> <span class="badge badge-primary">{{ 'household.holder'|trans }}</span>
{% endif %}
</div>
<div>
{{ 'Born the date'|trans({ 'gender': m.person.gender, 'birthdate': m.person.birthdate|format_date('long') }) }}
</div>
</div>
<div class="item-col box-where">
<ul class="list-content fa-ul">
{% if m.startDate is not empty %}
<li>{{ 'Since %date%'|trans({'%date%': m.startDate|format_date('long') }) }}</li>
{% endif %}
{% if m.endDate is not empty %}
<li>{{ 'Until %date%'|trans({'%date%': m.endDate|format_date('long') }) }}</li>
{% endif %}
</ul>
<ul class="record_actions">
<li>
<a
href="{{ chill_path_add_return_path('chill_person_household_member_edit', { 'id': m.id }) }}"
class="sc-button bt-edit"
/>
{{ 'household.Update membership'|trans }}
</a>
</li>
<li>
<a href="#" class="sc-button" /><i class="fa fa-sign-out"></i>{{ 'household.Leave'|trans }}</a>
</li>
</ul>
</div>
</div>
{% if m.comment is not empty %}
<div class="item-row comment">
<blockquote class="chill-user-quote">
{{ m.comment|chill_markdown_to_html }}
</blockquote>
</div>
{% endif %} {% endif %}
</div> </div>
<div> {% endfor %}
{{ 'Born the date'|trans({ 'gender': m.person.gender, 'birthdate': m.person.birthdate|format_date('long') }) }} </div>
</div> {% else %}
</div> <p class="chill-no-data-statement">{{ 'household.Any persons into this position'|trans }}</p>
<div class="item-col box-where"> {% endif %}
<ul class="list-content fa-ul">
{% if m.startDate is not empty %} {% set members = household.nonCurrentMembersByPosition(p) %}
<li>{{ 'Since %date%'|trans({'%date%': m.startDate|format_date('long') }) }}</li> {% if members|length > 0 %}
{% endif %} <p><!-- force a space after table --></p>
{% if m.endDate is not empty %} <button class="sc-button bt-green" type="button" data-toggle="collapse" data-target="#nonCurrent_{{ p.id }}" aria-expanded="false" aria-controls="collapse non current members">
<li>{{ 'Until %date%'|trans({'%date%': m.endDate|format_date('long') }) }}</li> {{ 'household.Show future or past memberships'|trans({'length': members|length}) }}
{% endif %} </button>
</ul>
<ul class="record_actions"> <div id="nonCurrent_{{ p.id }}" class="collapse">
<li> <div class="flex-table list-household-members">
<a {% for m in members %}
href="{{ chill_path_add_return_path('chill_person_household_member_edit', { 'id': m.id }) }}" <div class="item-bloc">
class="sc-button bt-edit" <div class="item-row person">
/> <div class="item-col box-person">
{{ 'household.Update membership'|trans }} <div>
</a> {{ m.person|chill_entity_render_box({'addLink': true}) }}
</li> {% if m.holder %}
<li> <span class="badge badge-primary">{{ 'household.holder'|trans }}</span>
<a href="#" class="sc-button" /><i class="fa fa-sign-out"></i>{{ 'household.Leave'|trans }}</a> {% endif %}
</li> </div>
</ul> <div>
{{ 'Born the date'|trans({ 'gender': m.person.gender, 'birthdate': m.person.birthdate|format_date('long') }) }}
</div>
</div>
<div class="item-col box-where">
<ul class="list-content fa-ul">
{% if m.startDate is not empty %}
<li>{{ 'Since %date%'|trans({'%date%': m.startDate|format_date('long') }) }}</li>
{% endif %}
{% if m.endDate is not empty %}
<li>{{ 'Until %date%'|trans({'%date%': m.endDate|format_date('long') }) }}</li>
{% endif %}
</ul>
<ul class="record_actions">
<li>
<a
href="{{ chill_path_add_return_path('chill_person_household_member_edit', { 'id': m.id }) }}"
class="sc-button bt-edit"
/>
{{ 'household.Update membership'|trans }}
</a>
</li>
</ul>
</div>
</div>
{% if m.comment is not empty %}
<div class="item-row comment">
<blockquote class="chill-user-quote">
{{ m.comment|chill_markdown_to_html }}
</blockquote>
</div>
{% endif %}
</div>
{% endfor %}
</div> </div>
</div> </div>
{% if m.comment is not empty %}
<div class="item-row comment">
<blockquote class="chill-user-quote">
{{ m.comment|chill_markdown_to_html }}
</blockquote>
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% else %}
<p class="chill-no-data-statement">{{ 'household.Any persons into this position'|trans }}</p>
{% endif %}
{% set members = household.nonCurrentMembersByPosition(p) %} {% endif %}
{% if members|length > 0 %}
<p><!-- force a space after table --></p>
<button class="sc-button bt-green" type="button" data-toggle="collapse" data-target="#nonCurrent_{{ p.id }}" aria-expanded="false" aria-controls="collapse non current members">
{{ 'household.Show future or past memberships'|trans({'length': members|length}) }}
</button>
<div id="nonCurrent_{{ p.id }}" class="collapse">
<div class="flex-table list-household-members">
{% for m in members %}
<div class="item-bloc">
<div class="item-row person">
<div class="item-col box-person">
<div>
{{ m.person|chill_entity_render_box({'addLink': true}) }}
{% if m.holder %}
<span class="badge badge-primary">{{ 'household.holder'|trans }}</span>
{% endif %}
</div>
<div>
{{ 'Born the date'|trans({ 'gender': m.person.gender, 'birthdate': m.person.birthdate|format_date('long') }) }}
</div>
</div>
<div class="item-col box-where">
<ul class="list-content fa-ul">
{% if m.startDate is not empty %}
<li>{{ 'Since %date%'|trans({'%date%': m.startDate|format_date('long') }) }}</li>
{% endif %}
{% if m.endDate is not empty %}
<li>{{ 'Until %date%'|trans({'%date%': m.endDate|format_date('long') }) }}</li>
{% endif %}
</ul>
<ul class="record_actions">
<li>
<a
href="{{ chill_path_add_return_path('chill_person_household_member_edit', { 'id': m.id }) }}"
class="sc-button bt-edit"
/>
{{ 'household.Update membership'|trans }}
</a>
</li>
</ul>
</div>
</div>
{% if m.comment is not empty %}
<div class="item-row comment">
<blockquote class="chill-user-quote">
{{ m.comment|chill_markdown_to_html }}
</blockquote>
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %} {% endfor %}
<ul class="record_actions sticky-form-buttons"> <ul class="record_actions sticky-form-buttons">
<li> <li>
<a class="sc-button bt-create"> <a class="sc-button bt-create">