diff --git a/app.rb b/app.rb index 2bd6170..d49d8f5 100644 --- a/app.rb +++ b/app.rb @@ -2,5 +2,11 @@ class App < Sinatra::Base + get "/newteam" do + erb :newteam + end + post "/team" do + erb :team + end end diff --git a/views/newteam.erb b/views/newteam.erb index 2eb4207..c5d015e 100644 --- a/views/newteam.erb +++ b/views/newteam.erb @@ -5,6 +5,17 @@ Basketball Team Signup +

Create a Basketball Team!

+
+

Team Name:

+

Coach:

+

Point Guard:

+

Shooting Guard:

+

Small Forward:

+

Power Forward:

+

Center:

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

Team Name: <%= params[:name] %>

+

Coach: <%= params[:coach]%>

+

Point Guard: <%= params[:pg]%>

+

Shooting Guard: <%= params[:sg]%>

+

Small Forward: <%= params[:sf]%>

+

Power Forward: <%= params[:pf]%>

+

Center: <%= params[:c]%>