Commit 7022f3ce authored by Pierre Dittgen's avatar Pierre Dittgen

Validation form: Adapt contributor display to new schema metadata pattern

parent 13fd7aa5
......@@ -10,14 +10,19 @@
{% if schema_info.description %}
<h6 class="card-subtitle mb-2 text-muted">{{ schema_info.description }}</h6>
{% endif %}
{% if schema_info.author or schema_info.contributor %}
{% if schema_info.contributors %}
<p>
{% if schema_info.author %}
Auteur : {{ schema_info.author }}
{% endif %}
{% if schema_info.contributor %}
<br />Contributeur(s) : {{ schema_info.contributor }}
{% endif %}
<h6>Contributeur{% if schema_info.contributors|length > 1 %}s{% endif %} :</h6>
<ul>
{% for contributor in schema_info.contributors %}
<li>
{{ contributor.title }}
{% if contributor.organisation %} <strong>{{ contributor.organisation }}</strong> {% endif %}
{% if contributor.role == 'author' %}(auteur){% endif %}
{% if contributor.role == 'contributor' %}(contributeur){% endif %}
</li>
{% endfor %}
</ul>
</p>
{% endif %}
{% if schema_info.doc_url or schema_info.url %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment