templates: update profile view to use new context variables (#25195)
This commit is contained in:
parent
690274e476
commit
1405c40a7e
|
@ -8,15 +8,15 @@
|
|||
<div class="block" id="a2-profile">
|
||||
<h2>Données du compte</h2>
|
||||
<div id="profile">
|
||||
{% if profile %}
|
||||
{% for key, values in profile %}
|
||||
{% if attributes %}
|
||||
{% for attribute in attributes %}
|
||||
<div class="field">
|
||||
<span class="label">{{ key|capfirst }}</span>
|
||||
<span class="label">{{ attribute.attribute.label|capfirst }}</span>
|
||||
<div class="value">
|
||||
{% if values|length == 0 %}<span class="nodata">(non spécifié)</span>
|
||||
{% elif values|length == 1 %}{{ values.0 }}{% else %}
|
||||
{% if attribute.values|length == 0 %}<span class="nodata">(non spécifié)</span>
|
||||
{% elif attribute.values|length == 1 %}{{ attribute.values.0 }}{% else %}
|
||||
<ul>
|
||||
{% for value in values %}
|
||||
{% for value in attribute.values %}
|
||||
<li>{{ value }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue