Skip to content

Commit

Permalink
document: improved display of genre form field
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Aug 28, 2023
1 parent f12ca52 commit 1e73e04
Showing 1 changed file with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,6 @@
<li>{{ document_type }}</li>
{% endfor %}
</ul>
{% if 'genreForm' in record %}
<ul class="list-unstyled mb-0">
{% for genreForm in record.genreForm %}
{% if 'entity' in genreForm %}
<li class="figure-caption">
<i class="fa fa-tag mr-1"></i>
{{ genreForm.entity | doc_entity_label(language=current_i18n.language) }}
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</figcaption>
</figure>
<div class="col-sm-10">
Expand Down Expand Up @@ -237,6 +225,21 @@ <h3>
</div>
{% endif %}

<!-- GENRE FORM -->
{% if 'genreForm' in record %}
<div class="pt-2">
{% for genreForm in record.genreForm %}
{% if 'entity' in genreForm %}
<span class="mr-1">
<i class="fa fa-tag"></i>
{{ genreForm.entity | doc_entity_label(language=current_i18n.language) }}
</span>
{% endif %}
{% endfor %}
</div>
{% endif %}


<!-- LINKED DOCUMENTS -->
{% if linked_documents_count and linked_documents_count > 0 %}
<a
Expand Down

0 comments on commit 1e73e04

Please sign in to comment.