mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
Add a phone number for the delivery referent. Fixes #22
This commit is contained in:
parent
00f31d8458
commit
60fa77533e
4 changed files with 8 additions and 1 deletions
|
@ -288,6 +288,7 @@ class Delivery(PersistedBase):
|
|||
to_date: datetime_field
|
||||
order_before: datetime_field
|
||||
contact: str
|
||||
contact_phone: str = ""
|
||||
instructions: str = ""
|
||||
where: str = "Marché de la Briche"
|
||||
products: List[Product] = field(default_factory=list)
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
progress: true,
|
||||
interactive: true,
|
||||
timeout: 8000,
|
||||
theme: "dark"
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
|
|
@ -30,6 +30,11 @@
|
|||
<p>Référent⋅e</p>
|
||||
<input type="email" name="contact" value="{{ delivery.contact or request.user.email }}" required>
|
||||
</label>
|
||||
<label>
|
||||
<p>Téléphone référent⋅e</p>
|
||||
<input id="contact_phone" onInput="prettifyPhoneNumber('contact_phone')" type="phone" name="contact_phone" value="{{ delivery.contact_phone }}" required>
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<p>Lieu</p>
|
||||
<input type="text" name="where" value="{{ delivery.where or '' }}" required>
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
</div>
|
||||
<div class="pure-control-group">
|
||||
<label>Téléphone référent⋅e</label>
|
||||
<input type="tel" name="referent_tel" value="{{ producer.referent_tel or '' }}" required>
|
||||
<input onInput="prettifyPhoneNumber('referent_tel')" id="referent_tel" type="tel" name="referent_tel" value="{{ producer.referent_tel or '' }}" required>
|
||||
</div>
|
||||
<div class="pure-control-group">
|
||||
<label>Contact producteur⋅rice</label>
|
||||
|
|
Loading…
Reference in a new issue