forked from DGNum/gestioCOF
send_rappel: use django messages + css tweaks
This commit is contained in:
parent
2a3614540f
commit
31c034a96a
3 changed files with 34 additions and 28 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue