Modifying the mash tournament schema a touch and adding a slew of scaffold-y stuff
This commit is contained in:
17
rails/map-mash/app/views/layouts/mash_tournaments.html.erb
Normal file
17
rails/map-mash/app/views/layouts/mash_tournaments.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<title>MashTournaments: <%= controller.action_name %></title>
|
||||
<%= stylesheet_link_tag 'scaffold' %>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p style="color: green"><%= flash[:notice] %></p>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
</body>
|
||||
</html>
|
12
rails/map-mash/app/views/mash_tournaments/edit.html.erb
Normal file
12
rails/map-mash/app/views/mash_tournaments/edit.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<h1>Editing mash_tournament</h1>
|
||||
|
||||
<% form_for(@mash_tournament) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.submit 'Update' %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Show', @mash_tournament %> |
|
||||
<%= link_to 'Back', mash_tournaments_path %>
|
18
rails/map-mash/app/views/mash_tournaments/index.html.erb
Normal file
18
rails/map-mash/app/views/mash_tournaments/index.html.erb
Normal file
@@ -0,0 +1,18 @@
|
||||
<h1>Listing mash_tournaments</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
</tr>
|
||||
|
||||
<% @mash_tournaments.each do |mash_tournament| %>
|
||||
<tr>
|
||||
<td><%= link_to 'Show', mash_tournament %></td>
|
||||
<td><%= link_to 'Edit', edit_mash_tournament_path(mash_tournament) %></td>
|
||||
<td><%= link_to 'Destroy', mash_tournament, :confirm => 'Are you sure?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New mash_tournament', new_mash_tournament_path %>
|
11
rails/map-mash/app/views/mash_tournaments/new.html.erb
Normal file
11
rails/map-mash/app/views/mash_tournaments/new.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<h1>New mash_tournament</h1>
|
||||
|
||||
<% form_for(@mash_tournament) do |f| %>
|
||||
<%= f.error_messages %>
|
||||
|
||||
<p>
|
||||
<%= f.submit 'Create' %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', mash_tournaments_path %>
|
3
rails/map-mash/app/views/mash_tournaments/show.html.erb
Normal file
3
rails/map-mash/app/views/mash_tournaments/show.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
<%= link_to 'Edit', edit_mash_tournament_path(@mash_tournament) %> |
|
||||
<%= link_to 'Back', mash_tournaments_path %>
|
Reference in New Issue
Block a user