From afc0cb531070604a9651fb6254a07948a83e116c Mon Sep 17 00:00:00 2001 From: Kevin Skilton Date: Fri, 3 May 2019 10:19:56 -0400 Subject: [PATCH] done --- app.rb | 14 +++++++++++++- views/newteam.erb | 14 +++++++++++--- views/team.erb | 11 ++++++++--- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/app.rb b/app.rb index 2bd6170..d33ef42 100644 --- a/app.rb +++ b/app.rb @@ -1,6 +1,18 @@ require 'sinatra/base' class App < Sinatra::Base - + get '/newteam' do + erb :newteam + end + post '/team' do + @name = params[:name] + @coach = params[:coach] + @pg = params[:pg] + @sg = params[:sg] + @pf = params[:pf] + @sf = params[:sf] + @c = params[:c] + erb :team + end end diff --git a/views/newteam.erb b/views/newteam.erb index 2eb4207..60e7862 100644 --- a/views/newteam.erb +++ b/views/newteam.erb @@ -2,10 +2,18 @@ - Basketball Team Signup + Create A Basketball Team +
+
+
+
+
+
+
+

+ +
- - diff --git a/views/team.erb b/views/team.erb index 1402747..621e07b 100644 --- a/views/team.erb +++ b/views/team.erb @@ -5,9 +5,14 @@ Basketball Team - - - +

Basketball Team!

+ Team Name: <%= @name %> + Coach: <%= @coach %> + Point Guard: <%=@pg %> + Power Forward: <%=@pf %> + Shooting Guard: <%=@sg %> + Small Forward: <%=@sf %> + Center: <%=@c %>