1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-09 07:39:06 +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,8 +24,8 @@
<%= 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,6 @@
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>
<br>
<h1>Editing weight</h1>
<%= render 'form' %>
<%= link_to 'Show', @weight %> |
<%= link_to 'Back', weights_path %>

View File

@@ -1,7 +1,6 @@
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>
<br>
<h1>New weight</h1>
<br>
<br>
<p>Create weights from the bottom up. For example, start with 106 lbs and create the weight classes through to 285 lbs. This will allow the program to run the tournament starting with the lowest weight each round.</p>
<%= render 'form' %>
<%= link_to 'Back', weights_path %>

View File

@@ -2,9 +2,9 @@
<h1>Weight Class:<%= @weight.max %></h1>
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %> |
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %> |
<% if user_signed_in? %>
<%= link_to "Edit #{@weight.max} Weight Class", edit_weight_path(@weight) %> |
<%= link_to "Edit #{@weight.max} Weight Class", edit_weight_path(@weight), :class=>"btn btn-primary" %>
<% end %>
<br>
@@ -45,7 +45,6 @@
<% end %></td>
<td><%= link_to 'Show', wrestler , :class=>"btn btn-default" %>
<% if user_signed_in? %>
<%= link_to 'Edit', edit_wrestler_path(wrestler) , :class=>"btn btn-default" %>
<%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' } , :class=>"btn btn-danger" %></td>
<% end %>
</tr>
@@ -54,7 +53,7 @@
</tbody>
</table>
<% if user_signed_in? %>
<%= submit_tag "Save"%>
<%= submit_tag "Save", :class=>"btn btn-success"%>
<% end %>
<% end %>