diff --git a/app.py b/app.py index e8fe7b4..4032377 100644 --- a/app.py +++ b/app.py @@ -1,3 +1,4 @@ +import json from datetime import datetime from flask import Flask, render_template, request, jsonify from flask_sqlalchemy import SQLAlchemy diff --git a/templates/admin.html b/templates/admin.html index 1386cfb..576f378 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -462,7 +462,7 @@ // Allow Enter key on start-date and weeks document.getElementById('start-date').addEventListener('keydown', e => { - if (e.key === 'Enter') previewDates(); + if (e.key === 'Enter') createSeason(); }); init(); diff --git a/templates/index.html b/templates/index.html index 1561d3e..1c6b4a6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -23,7 +23,8 @@ box-shadow: 0 0 0 2px #94897966; } .yes { background: #948979; font-weight: bold; color: #222831; } -.no { background: #393E46; color: #948979; font-weight: bold; } + .no { background: #393E46; color: #948979; font-weight: bold; } + .maybe { background: #4a3a00; font-weight: bold; color: #DFD0B8; } input[type="text"] { width: 90%; padding: 0.2em;