Commit 0176a989 authored by berumuron's avatar berumuron
Browse files

Merge branch 'prefill-date' into 'master'

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

See merge request marien.fressinaud/reflets!8
parents 38562edd 8db5dd44
......@@ -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