Browse Source

Utilisation de can_delete dans l'affichage des cotisations.

test-front-curly
LEVY-FALK Hugo 8 years ago
committed by root
parent
commit
9d41a7539f
  1. 8
      cotisations/templates/cotisations/aff_cotisations.html

8
cotisations/templates/cotisations/aff_cotisations.html

@ -58,11 +58,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<ul class="dropdown-menu" aria-labelledby="editionfacture">
{% 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: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 %}
<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>
</div>
</td>

Loading…
Cancel
Save