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 @@ ...@@ -10,14 +10,19 @@
{% if schema_info.description %} {% if schema_info.description %}
<h6 class="card-subtitle mb-2 text-muted">{{ schema_info.description }}</h6> <h6 class="card-subtitle mb-2 text-muted">{{ schema_info.description }}</h6>
{% endif %} {% endif %}
{% if schema_info.author or schema_info.contributor %} {% if schema_info.contributors %}
<p> <p>
{% if schema_info.author %} <h6>Contributeur{% if schema_info.contributors|length > 1 %}s{% endif %} :</h6>
Auteur : {{ schema_info.author }} <ul>
{% endif %} {% for contributor in schema_info.contributors %}
{% if schema_info.contributor %} <li>
<br />Contributeur(s) : {{ schema_info.contributor }} {{ contributor.title }}
{% endif %} {% if contributor.organisation %} <strong>{{ contributor.organisation }}</strong> {% endif %}
{% if contributor.role == 'author' %}(auteur){% endif %}
{% if contributor.role == 'contributor' %}(contributeur){% endif %}
</li>
{% endfor %}
</ul>
</p> </p>
{% endif %} {% endif %}
{% if schema_info.doc_url or schema_info.url %} {% 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