mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
improve masonry bloc style
This commit is contained in:
parent
6a0ce72836
commit
5089bba4d7
@ -254,3 +254,19 @@ abbr.referrer { // still used ?
|
|||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Masonry blocs on AccompanyingCourse resume page
|
||||||
|
div#dashboards {
|
||||||
|
div.mbloc {
|
||||||
|
& > div:not(.warnings) {
|
||||||
|
border: 1px solid $chill-light-gray;
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
& > div.warnings .alert {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
blockquote.chill-user-quote {
|
||||||
|
margin: -1.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -19,104 +19,123 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="accompanyingcourse-resume">
|
<div class="accompanyingcourse-resume overflow-hidden">
|
||||||
|
|
||||||
<div id="dashboards" class="row" data-masonry='{"percentPosition": true }'>
|
<div id="dashboards" class="row g-3" data-masonry='{"percentPosition": true }'>
|
||||||
{% if 'DRAFT' == accompanyingCourse.step %}
|
|
||||||
<div class="col-4 warnings mb-4">
|
<div class="mbloc col col-sm-6 col-lg-4">
|
||||||
{% include '@ChillPerson/AccompanyingCourse/_still_draft.html.twig' %}
|
<div class="warnings">
|
||||||
|
{% include '@ChillPerson/AccompanyingCourse/_still_draft.html.twig' %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% if 'DRAFT' == accompanyingCourse.step %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="mbloc col col-sm-6 col-lg-4">
|
||||||
|
<div class="warnings">
|
||||||
|
{% include '@ChillPerson/AccompanyingCourse/_join_household.html.twig' %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% if 'DRAFT' != accompanyingCourse.step %}
|
{% if 'DRAFT' != accompanyingCourse.step %}
|
||||||
{% if withoutHousehold|length > 0 %}
|
{% if withoutHousehold|length > 0 %}
|
||||||
<div class="col-4 warnings mb-4">
|
|
||||||
{% include '@ChillPerson/AccompanyingCourse/_join_household.html.twig' %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="mbloc col col-sm-6 col-lg-4">
|
||||||
|
<div class="warnings">
|
||||||
|
{% include '@ChillPerson/AccompanyingCourse/_warning_address.html.twig' %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% if accompanyingCourse.locationStatus == 'address'
|
{% if accompanyingCourse.locationStatus == 'address'
|
||||||
or accompanyingCourse.locationStatus == 'none' %}
|
or accompanyingCourse.locationStatus == 'none' %}
|
||||||
<div class="col-4 warnings mb-4">
|
|
||||||
{% include '@ChillPerson/AccompanyingCourse/_warning_address.html.twig' %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="col col-sm-6 col-lg-4 location mb-4">
|
<div class="mbloc col col-sm-6 col-lg-4">
|
||||||
{% if accompanyingCourse.locationStatus == 'person' %}
|
<div class="location">
|
||||||
<h2>{{ 'This course is located by'|trans }}</h2>
|
{% if accompanyingCourse.locationStatus == 'person' %}
|
||||||
<h4>{{ accompanyingCourse.personLocation|chill_entity_render_string }}</h4>
|
<h2>{{ 'This course is located by'|trans }}</h2>
|
||||||
{% elseif accompanyingCourse.locationStatus == 'address' %}
|
<h4>{{ accompanyingCourse.personLocation|chill_entity_render_string }}</h4>
|
||||||
<h4>{{ 'This course has a temporarily location'|trans }}</h4>
|
{% elseif accompanyingCourse.locationStatus == 'address' %}
|
||||||
{% endif %}
|
<h4>{{ 'This course has a temporarily location'|trans }}</h4>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if accompanyingCourse.locationStatus != 'none' %}
|
{% if accompanyingCourse.locationStatus != 'none' %}
|
||||||
{{ accompanyingCourse.location|chill_entity_render_box }}
|
{{ accompanyingCourse.location|chill_entity_render_box }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if accompanyingCourse.participations is not empty %}
|
{% if accompanyingCourse.participations is not empty %}
|
||||||
<div class="col col-sm-6 col-lg-4 persons mb-4">
|
<div class="mbloc col col-sm-6 col-lg-4">
|
||||||
<h4 class="item-key">{{ 'Persons associated'|trans }}</h4>
|
<div class="persons">
|
||||||
{% for r in accompanyingCourse.participations %}
|
<h4 class="item-key">{{ 'Persons associated'|trans }}</h4>
|
||||||
{{ _self.insert_onthefly('person', r.person) }}
|
{% for r in accompanyingCourse.participations %}
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if accompanyingCourse.resources is not empty %}
|
|
||||||
<div class="col col-sm-6 col-lg-4 resources mb-4">
|
|
||||||
<h4 class="item-key">{{ 'Resources'|trans }}</h4>
|
|
||||||
{% for r in accompanyingCourse.resources %}
|
|
||||||
{% if r.person is not null %}
|
|
||||||
{{ _self.insert_onthefly('person', r.person) }}
|
{{ _self.insert_onthefly('person', r.person) }}
|
||||||
{% elseif r.thirdParty is not null %}
|
|
||||||
{{ _self.insert_onthefly('thirdparty', r.thirdParty) }}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if accompanyingCourse.pinnedComment is not empty %}
|
|
||||||
<div class="col col-sm-6 col-lg-4 comment mb-4">
|
|
||||||
<h4 class="item-key">{{ 'Pinned comment'|trans }}</h4>
|
|
||||||
<blockquote class="chill-user-quote">
|
|
||||||
{{ accompanyingCourse.pinnedComment.content }}
|
|
||||||
<div class="metadata">
|
|
||||||
{{ 'Last updated by'| trans }}
|
|
||||||
<span class="user">
|
|
||||||
{{ accompanyingCourse.pinnedComment.updatedBy|chill_entity_render_box }}
|
|
||||||
</span>
|
|
||||||
{{ 'on'|trans ~ ' ' }}
|
|
||||||
<span class="date">
|
|
||||||
{{ accompanyingCourse.pinnedComment.updatedAt|format_datetime("medium", "short") }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</blockquote>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if accompanyingCourse.scopes is not empty %}
|
|
||||||
<div class="col col-sm-6 col-lg-4 scopes mb-4">
|
|
||||||
<h4 class="item-key">{{ 'Scopes'|trans }}</h4>
|
|
||||||
<div>
|
|
||||||
{% for s in accompanyingCourse.scopes %}
|
|
||||||
<span>{{ s.name|localize_translatable_string|capitalize }}</span>{% if not loop.last %}, {% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if accompanyingCourse.resources is not empty %}
|
||||||
|
<div class="mbloc col col-sm-6 col-lg-4">
|
||||||
|
<div class="resources">
|
||||||
|
<h4 class="item-key">{{ 'Resources'|trans }}</h4>
|
||||||
|
{% for r in accompanyingCourse.resources %}
|
||||||
|
{% if r.person is not null %}
|
||||||
|
{{ _self.insert_onthefly('person', r.person) }}
|
||||||
|
{% elseif r.thirdParty is not null %}
|
||||||
|
{{ _self.insert_onthefly('thirdparty', r.thirdParty) }}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if accompanyingCourse.pinnedComment is not empty %}
|
||||||
|
<div class="mbloc col col-sm-6 col-lg-4">
|
||||||
|
<div class="comment">
|
||||||
|
<h4 class="item-key visually-hidden">{{ 'Pinned comment'|trans }}</h4>
|
||||||
|
<blockquote class="chill-user-quote">
|
||||||
|
{{ accompanyingCourse.pinnedComment.content|chill_markdown_to_html }}
|
||||||
|
<div class="metadata">
|
||||||
|
{{ 'Last updated by'| trans }}
|
||||||
|
<span class="user">
|
||||||
|
{{ accompanyingCourse.pinnedComment.updatedBy|chill_entity_render_box }}
|
||||||
|
</span>
|
||||||
|
{{ 'on'|trans ~ ' ' }}
|
||||||
|
<span class="date">
|
||||||
|
{{ accompanyingCourse.pinnedComment.updatedAt|format_datetime("medium", "short") }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</blockquote>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if accompanyingCourse.scopes is not empty %}
|
||||||
|
<div class="mbloc col col-sm-6 col-lg-4">
|
||||||
|
<div class="scopes">
|
||||||
|
<h4 class="item-key">{{ 'Scopes'|trans }}</h4>
|
||||||
|
<div>
|
||||||
|
{% for s in accompanyingCourse.scopes %}
|
||||||
|
<span>{{ s.name|localize_translatable_string|capitalize }}</span>{% if not loop.last %}, {% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if accompanyingCourse.requestorPerson is not null or accompanyingCourse.requestorThirdParty is not null %}
|
{% if accompanyingCourse.requestorPerson is not null or accompanyingCourse.requestorThirdParty is not null %}
|
||||||
<div class="col col-sm-6 col-lg-4 requestor mb-4">
|
<div class="mbloc col col-sm-6 col-lg-4">
|
||||||
{% if accompanyingCourse.requestorPerson is not null %}
|
<div class="requestor">
|
||||||
<h4 class="item-key">{{ 'Requestor'|trans }}</h4>
|
{% if accompanyingCourse.requestorPerson is not null %}
|
||||||
{{ _self.insert_onthefly('person', accompanyingCourse.requestorPerson) }}
|
<h4 class="item-key">{{ 'Requestor'|trans }}</h4>
|
||||||
{% elseif accompanyingCourse.requestorThirdParty is not null %}
|
{{ _self.insert_onthefly('person', accompanyingCourse.requestorPerson) }}
|
||||||
<h4 class="item-key">{{ 'Requestor'|trans }}</h4>
|
{% elseif accompanyingCourse.requestorThirdParty is not null %}
|
||||||
{{ _self.insert_onthefly('thirdparty', accompanyingCourse.requestorThirdParty) }}
|
<h4 class="item-key">{{ 'Requestor'|trans }}</h4>
|
||||||
{% endif %}
|
{{ _self.insert_onthefly('thirdparty', accompanyingCourse.requestorThirdParty) }}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user