mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
simplify concernedGroups template for bloc/row include
This commit is contained in:
parent
c1ba892811
commit
574b5dcbd0
@ -71,6 +71,24 @@ div.flex-table.list-records {
|
|||||||
&:nth-child(2) {
|
&:nth-child(2) {
|
||||||
flex-grow: 0; flex-shrink: 1; flex-basis: 70%;
|
flex-grow: 0; flex-shrink: 1; flex-basis: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:only-child {
|
||||||
|
flex-grow: 0; flex-shrink: 0; flex-basis: 100%;
|
||||||
|
& > div.concerned-groups {
|
||||||
|
flex-grow: 0; flex-shrink: 0; flex-basis: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column; // TODO pas fini
|
||||||
|
div.group {
|
||||||
|
flex-grow: 1; flex-shrink: 0; flex-basis: 30%;
|
||||||
|
h4 {}
|
||||||
|
ul.list-content {
|
||||||
|
li {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
div.concerned-groups {
|
div.concerned-groups {
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
|
@ -46,27 +46,15 @@
|
|||||||
] %}
|
] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% set level1 = (with_display == 'bloc') ? context ~ ' flex-bloc ' : '' %}
|
{% if (with_display == 'bloc') %}
|
||||||
{% set level2 = (with_display == 'bloc') ? 'item-bloc ' : '' %}
|
<div class="{{ context }} flex-bloc concerned-groups">
|
||||||
{% set level3 = (with_display == 'bloc') ? 'item-row ' : '' %}
|
|
||||||
{% set level4 = (with_display == 'bloc') ? 'item-col ' : '' %}
|
|
||||||
|
|
||||||
<div class="{{ level1 }}concerned-groups">
|
|
||||||
|
|
||||||
{% for bloc in blocs %}
|
{% for bloc in blocs %}
|
||||||
<div class="{{ level2 }}">
|
<div class="item-bloc">
|
||||||
<div class="{{ level3 }}">
|
<div class="item-row">
|
||||||
<div class="{{ level4 }}">
|
<div class="item-col">
|
||||||
|
<h4>{{ bloc.title }}</h4>
|
||||||
{% if with_display == 'bloc' or bloc.items|length > 0 %}
|
|
||||||
<h4>{{ bloc.title }}</h4>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if with_display == 'bloc' %}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="{{ level4 }}">
|
<div class="item-col">
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<ul class="list-content">
|
<ul class="list-content">
|
||||||
{% for item in bloc.items %}
|
{% for item in bloc.items %}
|
||||||
<li>
|
<li>
|
||||||
@ -82,5 +70,28 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if (with_display == 'row') %}
|
||||||
|
<div class="concerned-groups">
|
||||||
|
{% for bloc in blocs %}
|
||||||
|
<div class="group">
|
||||||
|
{% if bloc.items|length > 0 %}
|
||||||
|
<h4>{{ bloc.title }}</h4>
|
||||||
|
<ul class="list-content">
|
||||||
|
{% for item in bloc.items %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ _self.href(bloc.path, bloc.key, item.id) }}">
|
||||||
|
<span class="badge badge-primary">
|
||||||
|
{{ item|chill_entity_render_box({'only_denomination': true}) }}
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user