mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
59 résumé, flex person position
This commit is contained in:
parent
20a14c9ff4
commit
7efbf2fce8
@ -67,3 +67,43 @@ div#header-accompanying_course-details {
|
|||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
padding-bottom: 1em;
|
padding-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
div.flex-bloc {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: stretch;
|
||||||
|
align-content: stretch;
|
||||||
|
&.right {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
div.item-bloc {
|
||||||
|
border: 1px solid #000;
|
||||||
|
margin: 0 1em 1em 0;
|
||||||
|
padding: 1em;
|
||||||
|
flex-grow: 0;
|
||||||
|
flex-shrink: 0;
|
||||||
|
flex-basis: 30%;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
h5 {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0.3em;
|
||||||
|
}
|
||||||
|
.content-bloc {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 90%;
|
||||||
|
}
|
||||||
|
dl {
|
||||||
|
}
|
||||||
|
ul.record_actions {
|
||||||
|
margin-top: auto;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -19,40 +19,53 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h2>{{ 'Associated peoples'|trans }}</h2>
|
<h2>{{ 'Associated peoples'|trans }}</h2>
|
||||||
|
<div class="flex-bloc right">
|
||||||
{% for p in accompanyingCourse.participations %}
|
{% for p in accompanyingCourse.participations %}
|
||||||
{% if p.enddate is null %}
|
{% if p.enddate is null %}
|
||||||
<h5>
|
<div class="item-bloc">
|
||||||
{{ p.person.firstname ~ ' ' ~ p.person.lastname }}
|
|
||||||
</h5>
|
<h5>{{ p.person.firstname ~ ' ' ~ p.person.lastname }}</h5>
|
||||||
{{ p.person.gender == 'woman' ? 'F' : 'M' }}<br>
|
<dl class="content-bloc">
|
||||||
{{ 'né le ' ~ p.person.birthdate|format_date('short') }}<br>
|
|
||||||
|
<dd>
|
||||||
|
{{ p.person.gender == 'woman' ? 'F' : 'M' }}
|
||||||
|
</dd>
|
||||||
|
<dd>
|
||||||
|
{{ 'né le ' ~ p.person.birthdate|format_date('short') }}
|
||||||
|
</dd>
|
||||||
|
<dd>
|
||||||
|
{% if p.person.mobilenumber %}
|
||||||
|
<dt class="fa fa-fw fa-mobile"></dt>{{ p.person.mobilenumber }}
|
||||||
|
{% else %}
|
||||||
|
<dt class="fa fa-fw fa-phone"></dt>
|
||||||
|
{% if p.person.phonenumber %}
|
||||||
|
{{ p.person.phonenumber }}
|
||||||
|
{% else %}
|
||||||
|
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
</dd>
|
||||||
|
<dd>
|
||||||
|
{%- if p.person.lastAddress is not empty -%}
|
||||||
|
{{ address._render(p.person.lastAddress, {'has_no_address': true, 'with_valid_from': false, 'with_icon': true}) }}
|
||||||
|
{%- else -%}
|
||||||
|
<dt class="fa fa-fw fa-map-marker"></dt>
|
||||||
|
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
|
||||||
|
{%- endif -%}
|
||||||
|
</dd>
|
||||||
|
|
||||||
{% if p.person.mobilenumber %}
|
</dl>
|
||||||
<i class="fa fa-fw fa-mobile"></i>{{ p.person.mobilenumber }}
|
<ul class="record_actions">
|
||||||
{% else %}
|
<li>
|
||||||
<i class="fa fa-fw fa-phone"></i>
|
<a href="{{ path('chill_person_view', { person_id: p.person.id }) }}" class="sc-button bt-show" target="_blank" title="Voir"></a>
|
||||||
{% if p.person.phonenumber %}
|
</li>
|
||||||
{{ p.person.phonenumber }}
|
</ul>
|
||||||
{% else %}
|
|
||||||
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
|
</div>
|
||||||
{% endif %}
|
|
||||||
{% endif %}<br>
|
|
||||||
|
|
||||||
{%- if p.person.lastAddress is not empty -%}
|
|
||||||
{{ address._render(p.person.lastAddress, {'has_no_address': true, 'with_valid_from': false, 'with_icon': true}) }}
|
|
||||||
{%- else -%}
|
|
||||||
<i class="fa fa-fw fa-map-marker"></i>
|
|
||||||
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
<ul class="record_actions">
|
|
||||||
<li>
|
|
||||||
<a href="{{ path('chill_person_view', { person_id: p.person.id }) }}" class="sc-button bt-show" target="_blank" title="Voir"></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<h2>{{ 'Resources'|trans }}</h2>
|
<h2>{{ 'Resources'|trans }}</h2>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user