Edit submit page to better match database values

main
sudoer777 2021-11-20 16:48:48 -07:00
parent 7ceccd2928
commit cc0b5ee087
2 changed files with 41 additions and 40 deletions

View File

@ -1,40 +0,0 @@
extends layout
block stylesheets
link(rel='stylesheet', href='/stylesheets/submit.css')
block content
h1 Submit Score
form(action='/submit', method='POST')
span(class='form-section')
label Sport
span(class='form-section-input')
select#sport-dropdown(name="sport")
option(value="Football" selected) Football
select#gender-dropdown(name="gender")
option(value="Male" selected) Male
option(value="Female") Female
select#division-dropdown(name="division")
option(value="Varsity") Varsity
option(value="JV-A") JV-A
option(value="JV-B") JV-B
span(class='form-section')
label Home Team
span(class='form-section-input')
input(type="text", name="home-team")
input(class="score-input", type="number", name="home-team-score", value="0")
span(class='form-section')
label Visiting Team
span(class='form-section-input')
input(type="text", name="visiting-team")
input(class="score-input", type="number", name="visiting-team-score", value="0")
span(class='form-section')
label Submitter
span(class='form-section-input')
input(type="text", name="submitter")
span(class='form-section')
label Send info to
span(class='form-section-input')
input(type="email", name="email", placeholder="email@example.com")
span(class='form-section')
button(type="submit") Submit

View File

@ -0,0 +1,41 @@
extends layout
block stylesheets
link(rel='stylesheet', href='/stylesheets/submit.css')
block content
h1 Submit Score
form(action='/submit', method='POST')
span(class='form-section')
label Year
span(class='form-section-input')
select#year-dropdown(name="year" class="main-dropdown")
option(value="2022" selected) 2021-2022
span(class='form-section')
label Sport
span(class='form-section-input')
select#sport-dropdown(name="sport" class="main-dropdown")
option(value="Basketball" selected) Basketball
select#gender-dropdown(name="gender")
option(value="Male" selected) Male
option(value="Female") Female
select#division-dropdown(name="division")
option(value="Varsity") Varsity
option(value="JV-A") JV-A
option(value="JV-B") JV-B
span(class='form-section')
label Date of match
span(class='form-section-input')
input(type="date", name="date", value=date)
span(class='form-section')
label Your team
span(class='form-section-input')
select#team1-dropdown(name="team1" class="main-dropdown")
input(class="score-input", type="number", name="team1-score", value="0")
span(class='form-section')
label Opponent
span(class='form-section-input')
select#team2-dropdown(name="team2" class="main-dropdown")
input(class="score-input", type="number", name="team2-score", value="0")
span(class='form-section')
button(type="submit") Submit