fixes for pesonnes ressources

This commit is contained in:
2022-01-26 14:00:45 +01:00
parent 0ea1708fe9
commit 7a78e8a6a7
3 changed files with 10 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
<div class="col-md col-xxl">
<div id="collapseForm" class="collapse">
<h3 style="margin-bottom: 2rem;">{{ 'Add a person resource'|trans }}</h3>
{% include "@ChillPerson/PersonResource/form.html.twig" %}
</div>
@@ -11,4 +12,4 @@
</li>
</ul>
</div>
</div>

View File

@@ -18,7 +18,7 @@
<h1>{{ 'List of resources'|trans }}</h1>
{% if personResources is not null %}
{% if personResources|length > 0 %}
{% for resource in personResources %}
<div class="flex-table">
<div class="item-bloc">
@@ -62,9 +62,7 @@
{% if resource.comment.comment is not null %}
<div class="item-row separator">
<section class="chill-entity entity-comment-embeddable">
<blockquote class="chill-user-quote">
<div>{{ resource.comment.comment }}<div>
</blockquote>
<div>{{ resource.comment|chill_entity_render_box }}<div>
</section>
</div>
{% endif %}
@@ -91,10 +89,9 @@
{% endfor %}
{% else %}
<p>{{ 'There are no available resources'|trans }}</p>
<p class="chill-no-data-statement">{{ 'There are no available resources'|trans }}</p>
{% endif %}
<h1 style="margin-bottom: 2rem;">{{ 'Add a person resource'|trans }}</h1>
{% include "@ChillPerson/PersonResource/create.html.twig" %}