1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-17 05:15:36 +00:00

Updated all links

This commit is contained in:
2015-06-30 16:56:36 +00:00
parent 0fddccf6f5
commit 5b17c49a20
25 changed files with 62 additions and 57 deletions

View File

@@ -24,9 +24,9 @@
<%= f.collection_select :tournament_id, Tournament.all, :id, :name %>
</div>
<% end %>
<br>
<div class="actions">
<%= f.submit %>
<%= f.submit 'Submit', :class=>"btn btn-success" %>
</div>
<% end %>

View File

@@ -1,6 +1,7 @@
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>
<br>
<h1>Editing school</h1>
<br>
<br>
<%= render 'form' %>
<%= link_to 'Show', @school %> |
<%= link_to 'Back', schools_path %>

View File

@@ -1,5 +1,7 @@
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>
<br>
<h1>New school</h1>
<br>
<br>
<%= render 'form' %>
<%= link_to 'Back', "/tournaments/#{@tournament.id}" %>

View File

@@ -1,5 +1,10 @@
<p id="notice"><%= notice %></p>
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}",:class=>"btn btn-default" %> |
<% if user_signed_in? %>
<%= link_to "Edit #{@school.name}", edit_school_path(@school),:class=>"btn btn-primary" %>
<% end %>
<br>
<br>
<p>
<strong>Name:</strong>
<%= @school.name %>
@@ -15,17 +20,13 @@
<%= Tournament.find(@school.tournament_id).name %>
</p>
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %> |
<% if user_signed_in? %>
<%= link_to "Edit #{@school.name}", edit_school_path(@school) %> |
<% end %>
<br>
<br>
<% if user_signed_in? %>
<%= link_to "New #{@school.name} Wrestler" , "/wrestlers/new?school=#{@school.id}" %>
<%= link_to "New #{@school.name} Wrestler" , "/wrestlers/new?school=#{@school.id}", :class=>"btn btn-success"%>
<% end %>
<br>
<br>