On ajoute un lien pour faciliter l'administration
This commit is contained in:
parent
0190d91268
commit
70260fcb4f
@ -43,6 +43,19 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
{% if object.recurrentimport_set.all|length == 1 %}
|
||||||
|
<p>Cet organisateur est associé à l'import récurrent <a href="{{ object.recurrentimport_set.all.0.get_absolute_url }}">{{ object.recurrentimport_set.all.0 }}</a>.</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if object.recurrentimport_set.count > 1 %}
|
||||||
|
<p>Cet organisateur est associé aux imports récurrents :</p>
|
||||||
|
<ul>
|
||||||
|
{% for ir in object.recurrentimport_set.all %}
|
||||||
|
<li><a href="{{ ir.get_absolute_url }}">{{ ir }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{{ object.description|safe }}
|
{{ object.description|safe }}
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user