send_rappel: use django messages + css tweaks

This commit is contained in:
Martin Pépin 2017-06-02 18:01:27 +01:00
parent 2a3614540f
commit 31c034a96a
3 changed files with 34 additions and 28 deletions

View file

@ -673,6 +673,14 @@ def send_rappel(request, spectacle_id):
# Demande de confirmation
else:
ctxt['sent'] = False
if show.rappel_sent:
messages.warning(
request,
"Attention, un mail de rappel pour ce spectale a déjà été "
"envoyé le {}".format(formats.localize(
timezone.template_localtime(show.rappel_sent)
))
)
return render(request, "bda/mails-rappel.html", ctxt)