From 746b8a97bffdaeeb4504865690a26852bf89f714 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Thu, 30 Sep 2021 14:43:10 -0600 Subject: [PATCH] Add basic form --- views/index.pug | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/views/index.pug b/views/index.pug index 3d63b9a..779b6d2 100644 --- a/views/index.pug +++ b/views/index.pug @@ -1,5 +1,30 @@ extends layout block content - h1= title - p Welcome to #{title} + form(action='/submit', method='POST') + span + label Sport + select(name="sport") + option(value="football" selected) Football + select(name="gender") + option(value="male" selected) Male + option(value="female") Female + select(name="division") + option(value="varsity") Varsity + option(value="jv-a") JV-A + option(value="jv-b") JV-B + span + label Home Team + input(type="text", name="home-team") + input(type="number", name="home-team-score") + span + label Visiting Team + input(type="text", name="visiting-team") + input(type="number", name="visiting-team-score") + span + label Submitter + input(type="text", name="submitter") + span + label Send info to + input(type="text", name="email", placeholder="email@example.com") + button(type="submit") Submit