Commit 20053f91 authored by fred's avatar fred

hide edit & send buttons when newsletter has already been sent

parent 819e5bf2
...@@ -8,8 +8,12 @@ ...@@ -8,8 +8,12 @@
{% if perms.newsletter.add_newsletter %} {% if perms.newsletter.add_newsletter %}
<p> <p>
{% if object.expedition_datetime %}
<span class="big-friendly-button"><strong>Envoyée le {{ object.expedition_datetime }}</strong></span>
{% else %}
<a class="big-friendly-button" href="{% url 'newsletter-edit' pk=object.id %}">Modifier</a> <a class="big-friendly-button" href="{% url 'newsletter-edit' pk=object.id %}">Modifier</a>
<a class="big-friendly-button" href="{% url 'newsletter-send' pk=object.id %}">Envoyer</a> <a class="big-friendly-button" href="{% url 'newsletter-send' pk=object.id %}">Envoyer</a>
{% endif %}
</p> </p>
{% endif %} {% endif %}
......
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