mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Cosmetics
This commit is contained in:
parent
6b59ee0f6f
commit
45c88a21bf
3 changed files with 8 additions and 4 deletions
|
@ -3,11 +3,11 @@
|
||||||
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>{{ delivery.name }}</h1>
|
<h1>{{ delivery.name }}</h1>
|
||||||
<h4>{% if delivery.products %}{% if delivery.status == delivery.OPEN %}Commandes jusqu'au {{ delivery.order_before|date|capitalize }}{% elif delivery.status == delivery.ADJUSTMENT %}Ajustements en cours{% elif delivery.status == delivery.CLOSED %}Fermée{% else %}Archivée{% endif %}{% endif %}.
|
<h4>{% if delivery.products %}{% if delivery.status == delivery.OPEN %}Commandes ouvertes jusqu'au {{ delivery.order_before|date }}{% elif delivery.status == delivery.ADJUSTMENT %}Ajustements en cours{% elif delivery.status == delivery.CLOSED %}Fermée{% else %}Archivée{% endif %}{% endif %}.
|
||||||
{% include "includes/order_button.html" %}
|
{% include "includes/order_button.html" %}
|
||||||
</h4>
|
</h4>
|
||||||
<h4>
|
<h4>
|
||||||
Distribution <i class="icon-clock"></i> {{ delivery.from_date|date|capitalize }}, {{ delivery.from_date|time }} - {{ delivery.to_date|time }}, à <i class="icon-streetsign"></i> {{ delivery.where }}.
|
Distribution le <i class="icon-clock"></i> {{ delivery.from_date|date }}, {{ delivery.from_date|time }} - {{ delivery.to_date|time }}, à <i class="icon-streetsign"></i> {{ delivery.where }}.
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="pure-menu pure-menu-horizontal">
|
<div class="pure-menu pure-menu-horizontal">
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
<p>Bienvenue ! Pour accéder aux commandes groupées, merci de rentrer votre email.</p>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<input type="email" name="email" placeholder="Mon courriel" required>
|
<input type="email" name="email" placeholder="Mon email" required>
|
||||||
<input type="submit" value="Envoyez-moi un sésame">
|
<input type="submit" value="Envoyez-moi un sésame">
|
||||||
</form>
|
</form>
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
|
|
@ -54,7 +54,10 @@ async def send_sesame(request, response):
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
response.message("Oops, impossible d'envoyer le courriel…", status="error")
|
response.message("Oops, impossible d'envoyer le courriel…", status="error")
|
||||||
else:
|
else:
|
||||||
response.message(f"Un sésame vous a été envoyé à l'adresse '{email}'")
|
response.message(
|
||||||
|
f"Un sésame vous a été envoyé par mail, cliquez sur le lien pour vous "
|
||||||
|
"connecter."
|
||||||
|
)
|
||||||
response.redirect = "/"
|
response.redirect = "/"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue