mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-03 18:12:24 +00:00
Utilisation de can_delete dans l'affichage des cotisations.
This commit is contained in:
parent
588e3c3823
commit
9d41a7539f
1 changed files with 5 additions and 3 deletions
|
@ -58,11 +58,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<ul class="dropdown-menu" aria-labelledby="editionfacture">
|
<ul class="dropdown-menu" aria-labelledby="editionfacture">
|
||||||
{% can_edit facture %}
|
{% can_edit facture %}
|
||||||
<li><a href="{% url 'cotisations:edit-facture' facture.id %}"><i class="glyphicon glyphicon-bitcoin"></i> Modifier</a></li>
|
<li><a href="{% url 'cotisations:edit-facture' facture.id %}"><i class="glyphicon glyphicon-bitcoin"></i> Modifier</a></li>
|
||||||
<li><a href="{% url 'cotisations:del-facture' facture.id %}"><i class="glyphicon glyphicon-trash"></i> Supprimer</a></li>
|
|
||||||
<li><a href="{% url 'cotisations:history' 'facture' facture.id %}"><i class="glyphicon glyphicon-time"></i> Historique</a></li>
|
|
||||||
{% acl_else %}
|
{% acl_else %}
|
||||||
<li>Facture controlée</li>
|
<li>Facture controlée</li>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
|
{% can_delete facture %}
|
||||||
|
<li><a href="{% url 'cotisations:del-facture' facture.id %}"><i class="glyphicon glyphicon-trash"></i> Supprimer</a></li>
|
||||||
|
{% acl_end %}
|
||||||
|
<li><a href="{% url 'cotisations:history' 'facture' facture.id %}"><i class="glyphicon glyphicon-time"></i> Historique</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue