mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
entity render: options, html classes, corrections
note: span.chill-entity tag is replaced by section.chill-entity tag. because some cases are not valid html : * span.chill-entity > div * span.badge > div.chill-entity
This commit is contained in:
@@ -226,22 +226,30 @@
|
||||
{% else %}
|
||||
<div class="flex-bloc">
|
||||
{% for r in accompanyingCourse.resources %}
|
||||
<div class="item-bloc">
|
||||
{% if r.person %}
|
||||
|
||||
{{ r.person|chill_entity_render_box({
|
||||
'display': 'bloc', 'addLink': true, 'addEntity': true, 'addInfo': true
|
||||
}) }}
|
||||
{# TEST
|
||||
{{ r.person|chill_entity_render_box({
|
||||
'render': 'label', 'addLink': true, 'addInfo': true, 'hLevel': '1'
|
||||
}) }}
|
||||
|
||||
{% endif %}
|
||||
{% if r.thirdParty %}
|
||||
<span class="badge bg-primary">
|
||||
{{ r.person|chill_entity_render_box({'render': 'raw'}) }}
|
||||
</span>
|
||||
#}
|
||||
|
||||
{{ r.thirdParty|chill_entity_render_box({
|
||||
'display': 'bloc', 'addLink': true, 'addEntity': true, 'addInfo': true
|
||||
}) }}
|
||||
<div class="item-bloc">
|
||||
{% if r.person %}
|
||||
{{ r.person|chill_entity_render_box({
|
||||
'render': 'bloc', 'addLink': true, 'addEntity': true, 'addInfo': true
|
||||
}) }}
|
||||
{% endif %}
|
||||
{% if r.thirdParty %}
|
||||
{{ r.thirdParty|chill_entity_render_box({
|
||||
'render': 'bloc', 'addLink': true, 'addEntity': true, 'addInfo': true
|
||||
}) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user