This repository has been archived on 2024-04-05. You can view files and clone it, but cannot push or open issues/pull-requests.
score-tracker/views/manage/addgame.pug

61 lines
2.4 KiB
Plaintext
Raw Normal View History

2021-11-26 19:37:09 +00:00
extends ../layout
block stylesheets
link(rel='stylesheet', href='/stylesheets/submit.css')
2021-11-22 02:07:44 +00:00
link(rel='stylesheet', href='/stylesheets/form.css')
block content
2022-03-08 17:55:23 +00:00
span#loading-span Loading...
form#submission-form(action='./game', method='POST')
2021-11-22 02:07:44 +00:00
span(class='form-section')
label Year
span(class='form-section-input')
2021-11-23 07:49:11 +00:00
select#year-dropdown(name="year" class="form-main-dropdown" disabled)
2021-11-26 20:59:17 +00:00
span(class='form-section flat-form-section')
span
label Sport
span(class='form-section-input')
select#sport-dropdown(name="sport" class="form-main-dropdown")
span
label Gender
span(class='form-section-input')
select#gender-dropdown(name="gender")
span
label Division
span(class='form-section-input')
select#division-dropdown(name="division")
2021-11-22 02:07:44 +00:00
span(class='form-section')
label Date of match
span(class='form-section-input')
2021-11-23 07:49:11 +00:00
input#date-input(type="date", name="date" value=date disabled)
2021-11-26 20:59:17 +00:00
span(class='form-section flat-form-section')
span
label Your team
span(class='form-section-input')
select#team1-dropdown(name="team1" class="form-main-dropdown" disabled)
span(class='form-score-input')
label Score
span(class='form-section-input')
input#team1-score-textbox(type="number", name="team1-score", value="0" disabled)
span(class='form-section flat-form-section')
span
label Opponent
span(class='form-section-input')
select#team2-dropdown(name="team2" class="form-main-dropdown" disabled)
span(class='form-score-input')
label Score
span(class='form-section-input')
input#team2-score-textbox(type="number", name="team2-score", value="0" disabled)
if !userLoggedIn
span(class='form-section')
label Your name
span(class='form-section-input')
input#name-textbox(type="text" name="name" disabled)
2021-11-26 23:29:03 +00:00
.error #{message}
2021-11-22 02:07:44 +00:00
span(class='form-section')
2021-11-23 07:49:11 +00:00
button#submit-button(type="submit" disabled) Submit
span(class='form-section')
button#delete-button(disabled) Delete
2021-11-21 21:37:35 +00:00
block scripts
2021-11-23 07:49:11 +00:00
script(src='/scripts/manage/game.js' type="module")