Skip to content

Commit

Permalink
lab
Browse files Browse the repository at this point in the history
  • Loading branch information
victhevenot committed Nov 19, 2015
1 parent 1d4381c commit f63c84b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 37 deletions.
15 changes: 0 additions & 15 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,5 @@

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]
@sf = params[:sf]
@pf = params[:pf]
@c = params[:c]
erb :team
end


end
14 changes: 2 additions & 12 deletions views/newteam.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,10 @@
<html>
<head>
<meta charset="UTF-8">
<title>Basketball Team</title>
<title>Basketball Team Signup</title>
</head>
<body>
<form action="/team" method="post">
</form>
Name<input type="text" name="name">
Coach<input type="text" name="coach">
Point Guard<input type="text" name="pg">
Shooting Guard<input type="text" name="sg">
Power Guard<input type="text" name="pf">
Small Forward<input type="text" name="sf">
Center <input type="text" name="c">
<input type="submit" name="submit" value="submit" id="submit"/>
</form>


</body>
</html>
Expand Down
12 changes: 2 additions & 10 deletions views/team.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@
<html>
<head>
<meta charset="UTF-8">
<title>Basketball Team Sign Up</title>
<title>Basketball Team</title>
</head>
<body>
<h1> Create a Basketball Team! </h1>
Team Name: <%= @name %>
Coach: <%= @coach %>
Point Guard: <%=@pg %>
Power Foward: <%=@pf %>
Shooting Guard: <%=@sg %>
Small Forward: <%=@sf %>
Center: <%=@c %>




</body>
Expand Down

0 comments on commit f63c84b

Please sign in to comment.