Merge branch 'issue382_person_resource'

This commit is contained in:
2022-01-26 14:43:50 +01:00
4 changed files with 11 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

@@ -17,7 +17,8 @@
{% block personcontent %}
<h1>{{ 'List of resources'|trans }}</h1>
{% if personResources is not empty %}
{% if personResources|length > 0 %}
{% for resource in personResources %}
<div class="flex-table">
<div class="item-bloc">
@@ -61,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 %}
@@ -93,8 +92,6 @@
<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" %}
{% endblock %}