Commit 8db5dd44 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Préremplit la date de l'évènement avec la date d'aujourd'hui;

parent 38562edd
......@@ -39,4 +39,5 @@ def create():
else:
return redirect(url_for("index"))
return render_template("events/create.html")
today_date = datetime.strftime(datetime.now(), "%Y-%m-%d")
return render_template("events/create.html", today_date=today_date)
......@@ -18,7 +18,7 @@
<div class="form-group">
<label for="date">Date</label>
<input type="date" name="date" id="date" required />
<input type="date" name="date" id="date" required value="{{ today_date }}" />
</div>
<div class="form-group form-group-radios">
......
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