From 5da061a3d5affcb32944c823a16485b100ae20c6 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 3 May 2018 05:05:24 +0000 Subject: [PATCH] Prefill datetime inputs on voting page if submitted values --- webapp/titanembeds/blueprints/admin/admin.py | 2 +- webapp/titanembeds/templates/admin_voting.html.j2 | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/webapp/titanembeds/blueprints/admin/admin.py b/webapp/titanembeds/blueprints/admin/admin.py index f06ece6..0695828 100644 --- a/webapp/titanembeds/blueprints/admin/admin.py +++ b/webapp/titanembeds/blueprints/admin/admin.py @@ -457,4 +457,4 @@ def voting_get(): if gmember: u["discord"] = gmember.username + "#" + str(gmember.discriminator) referrals.append(u) - return render_template("admin_voting.html.j2", overall=overall, referrals=referrals) \ No newline at end of file + return render_template("admin_voting.html.j2", overall=overall, referrals=referrals, datestart=datestart, timestart=timestart, dateend=dateend, timeend=timeend) \ No newline at end of file diff --git a/webapp/titanembeds/templates/admin_voting.html.j2 b/webapp/titanembeds/templates/admin_voting.html.j2 index 151f44d..a3e9e7d 100644 --- a/webapp/titanembeds/templates/admin_voting.html.j2 +++ b/webapp/titanembeds/templates/admin_voting.html.j2 @@ -20,18 +20,18 @@
- +
- +
- +
- +