mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
use chill_entity_render_box/string and design a badge-person
This commit is contained in:
parent
b301c1d405
commit
883cb858a9
@ -163,7 +163,7 @@ div.wrap-list {
|
|||||||
width: 75%;
|
width: 75%;
|
||||||
margin: auto 0 0 auto;
|
margin: auto 0 0 auto;
|
||||||
|
|
||||||
p.wl-item {
|
.wl-item {
|
||||||
margin: 0.1em;
|
margin: 0.1em;
|
||||||
padding: 0em;
|
padding: 0em;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -27,5 +27,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// specific chill badge for persons
|
||||||
|
span.badge-person {
|
||||||
|
padding: 0 0.5em !important;
|
||||||
|
background-color: $white;
|
||||||
|
border: 1px solid $chill-ll-gray;
|
||||||
|
border-bottom: 2px solid $chill-green;
|
||||||
|
border-radius: 6px;
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -60,37 +60,38 @@
|
|||||||
<div class="item-row separator">
|
<div class="item-row separator">
|
||||||
|
|
||||||
<div class="wrap-list">
|
<div class="wrap-list">
|
||||||
{% if accompanying_period.participations.count > 0 %}
|
|
||||||
<div class="wl-row">
|
|
||||||
<div class="wl-col title"><h3>{{ 'Participants'|trans }}</h3></div>
|
|
||||||
<div class="wl-col list">
|
|
||||||
{% for p in accompanying_period.participations %}
|
|
||||||
<p class="wl-item">
|
|
||||||
<a href="{{ path('chill_person_accompanying_period_list', { person_id: p.person.id }) }}">
|
|
||||||
{{ p.person.firstname ~ ' ' ~ p.person.lastname }}
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% if accompanying_period.requestorPerson is not null or accompanying_period.requestorThirdParty is not null %}
|
{% if accompanying_period.requestorPerson is not null or accompanying_period.requestorThirdParty is not null %}
|
||||||
<div class="wl-row">
|
<div class="wl-row">
|
||||||
<div class="wl-col title"><h3>{{ 'Requestor'|trans }}</h3></div>
|
<div class="wl-col title"><h3>{{ 'Requestor'|trans }}</h3></div>
|
||||||
<div class="wl-col list">
|
<div class="wl-col list">
|
||||||
{% if accompanying_period.requestorPerson is not null %}
|
{% if accompanying_period.requestorPerson is not null %}
|
||||||
<p class="wl-item">
|
<span class="wl-item">{{ accompanying_period.requestorPerson|chill_entity_render_string }}</span>
|
||||||
{{ accompanying_period.requestorPerson.firstname ~ ' ' ~ accompanying_period.requestorPerson.lastname }}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if accompanying_period.requestorThirdParty is not null %}
|
{% if accompanying_period.requestorThirdParty is not null %}
|
||||||
<p class="wl-item">
|
<span class="wl-item">{{ accompanying_period.requestorThirdParty|chill_entity_render_string }}</span>
|
||||||
{{ accompanying_period.requestorThirdParty.name }}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if accompanying_period.participations.count > 0 %}
|
||||||
|
<div class="wl-row">
|
||||||
|
<div class="wl-col title"><h3>{{ 'Participants'|trans }}</h3></div>
|
||||||
|
<div class="wl-col list">
|
||||||
|
{% for p in accompanying_period.participations %}
|
||||||
|
<span class="wl-item badge-person">
|
||||||
|
<a href="{{ path('chill_person_accompanying_period_list', { person_id: p.person.id }) }}">
|
||||||
|
{{ p.person|chill_entity_render_string }}
|
||||||
|
</a>
|
||||||
|
{# or in renderbox mode
|
||||||
|
{{ p.person|chill_entity_render_box({'render': 'label', 'addAltNames': false, 'addLink': true, 'hLevel': 5 }) }}
|
||||||
|
#}
|
||||||
|
</span>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if accompanying_period.socialIssues.count > 0 %}
|
{% if accompanying_period.socialIssues.count > 0 %}
|
||||||
<div class="wl-row">
|
<div class="wl-row">
|
||||||
<div class="wl-col title"><h3>{{ 'Social issues'|trans }}</h3></div>
|
<div class="wl-col title"><h3>{{ 'Social issues'|trans }}</h3></div>
|
||||||
|
@ -71,26 +71,31 @@
|
|||||||
{% for app in apps %}
|
{% for app in apps %}
|
||||||
<div class="wl-row separator">
|
<div class="wl-row separator">
|
||||||
<div class="wl-col title">
|
<div class="wl-col title">
|
||||||
|
|
||||||
<div class="date">
|
<div class="date">
|
||||||
{{ 'Since %date%'|trans({'%date%': app.startDate|format_date('medium') }) }}
|
{{ 'Since %date%'|trans({'%date%': app.startDate|format_date('medium') }) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if app.accompanyingPeriod.user is not null %}
|
{% if app.accompanyingPeriod.user is not null %}
|
||||||
<div class="user">
|
<div class="user">
|
||||||
<abbr class="referrer" title="{{ 'Referrer'|trans }}">ref:</abbr>
|
<abbr class="referrer" title="{{ 'Referrer'|trans }}">ref:</abbr>
|
||||||
{{ app.accompanyingPeriod.user|chill_entity_render_box }}
|
{{ app.accompanyingPeriod.user|chill_entity_render_box }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="wl-col list">
|
<div class="wl-col list">
|
||||||
|
|
||||||
{% for issue in app.accompanyingPeriod.socialIssues %}
|
{% for issue in app.accompanyingPeriod.socialIssues %}
|
||||||
{{ issue|chill_entity_render_box }}
|
{{ issue|chill_entity_render_box }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{# ^^ display all socialIssues
|
{# ^^ display all socialIssues, or slice vv
|
||||||
|slice(0,2)
|
|slice(0,2)
|
||||||
{% if app.accompanyingPeriod.socialIssues|length > 2 %}
|
{% if app.accompanyingPeriod.socialIssues|length > 2 %}
|
||||||
<span class="more">{{ 'and %number% other'|transchoice(app.accompanyingPeriod.socialIssues|length-2) }}</span>
|
<span class="more">{{ 'and %number% other'|transchoice(app.accompanyingPeriod.socialIssues|length-2) }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
#}
|
#}
|
||||||
|
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': app.accompanyingPeriod.id }) }}"
|
<a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': app.accompanyingPeriod.id }) }}"
|
||||||
@ -99,6 +104,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user