mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-10 07:48:29 +00:00
Removing bootstrap buttons all over the place and replacing with font awesome icons
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
<h3>Weight Class:<%= @weight.max %> <% if can? :manage, @tournament %><%= link_to " Edit", edit_weight_path(@weight), :class=>"fas fa-edit" %><% end %></h3>
|
||||
<% if can? :manage, @tournament %>
|
||||
<%= link_to "Edit #{@weight.max} Weight Class", edit_weight_path(@weight), :class=>"btn btn-primary" %> |
|
||||
<%= form_for(@weight, url: regen_weight_path(@weight.id), :method => "post") do |f| %>
|
||||
<%= submit_tag "Regenerate Weight Class Matches", :class=>"btn btn-default"%>
|
||||
<%= submit_tag "Regenerate Weight Class Matches", :class=>"btn btn-sm btn-default"%>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<br>
|
||||
<h1>Weight Class:<%= @weight.max %></h1>
|
||||
<br>
|
||||
<br>
|
||||
<table class="table table-striped table-bordered table-condensed">
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
@@ -18,7 +15,6 @@
|
||||
<th>Record</th>
|
||||
<th>Seed Criteria</th>
|
||||
<th>Extra?</th>
|
||||
<% if can? :manage, @tournament %><th>Actions for wrestler</th><% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -26,7 +22,7 @@
|
||||
<% @wrestlers.sort_by{|w| [w.original_seed ? 0 : 1, w.original_seed || 0]}.each do |wrestler| %>
|
||||
<% if wrestler.weight_id == @weight.id %>
|
||||
<tr>
|
||||
<td><%= wrestler.name %></td>
|
||||
<td><%= link_to "#{wrestler.name}", wrestler %></td>
|
||||
<td><%= wrestler.school.name %></td>
|
||||
<td>
|
||||
<% if can? :manage, @tournament %>
|
||||
@@ -43,8 +39,9 @@
|
||||
Yes
|
||||
<% end %></td>
|
||||
<% if can? :manage, @tournament %>
|
||||
<td><%= link_to 'Show', wrestler , :class=>"btn btn-default btn-sm" %>
|
||||
<%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' } , :class=>"btn btn-danger btn-sm" %></td>
|
||||
<td>
|
||||
<%= link_to '', wrestler, method: :delete, data: { confirm: "Are you sure you want to delete #{wrestler.name}?" } , :class=>"fas fa-trash-alt" %>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
@@ -54,7 +51,7 @@
|
||||
<br><p>*All wrestlers without a seed (determined by tournament director) will be assigned a random seed.</p>
|
||||
<% if can? :manage, @tournament %>
|
||||
<br>
|
||||
<%= submit_tag "Save", :class=>"btn btn-success"%>
|
||||
<%= submit_tag "Save Seeds", :class=>"btn btn-success"%>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user