mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Removing bootstrap buttons all over the place and replacing with font awesome icons
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
<% if can? :manage, @school %>
|
||||
<%= link_to "Edit #{@school.name}", edit_school_path(@school),:class=>"btn btn-primary" %> |
|
||||
<% end %>
|
||||
<%= link_to "#{@school.name} Stat Summary", "/schools/#{@school.id}/stats",:class=>"btn btn-primary" %>
|
||||
<br>
|
||||
<br>
|
||||
<p>
|
||||
<strong>Name:</strong>
|
||||
<%= @school.name %>
|
||||
<% if can? :manage, @school %><%= link_to " Edit", edit_school_path(@school),:class=>"fas fa-edit" %><% end %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@@ -21,20 +16,12 @@
|
||||
<p>
|
||||
<strong>Tournament:</strong>
|
||||
<%= @school.tournament.name %>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<% if can? :manage, @school %>
|
||||
<%= link_to "New #{@school.name} Wrestler" , "/wrestlers/new?school=#{@school.id}", :class=>"btn btn-success"%>
|
||||
<% end %>
|
||||
</p>
|
||||
<%= link_to "#{@school.name} Stat Summary", "/schools/#{@school.id}/stats",:class=>"btn btn-sm btn-primary" %>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<table class="table table-striped table-bordered table-condensed">
|
||||
<h3>Roster</h3>
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
@@ -43,14 +30,14 @@
|
||||
<th>Team Points Scored</th>
|
||||
<th>Extra?</th>
|
||||
<th>Next Bout/Mat</th>
|
||||
<th>Actions</th>
|
||||
<% if can? :manage, @school %><th><%= link_to " New Wrestler" , "/wrestlers/new?school=#{@school.id}", :class=>"fas fa-plus"%></th><% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @wrestlers.sort_by{|w| w.weight.max}.each do |wrestler| %>
|
||||
<tr>
|
||||
<td><%= wrestler.name %></td>
|
||||
<td><%= link_to "#{wrestler.name}", wrestler %></td>
|
||||
<td><%= wrestler.weight.max %></td>
|
||||
<td>
|
||||
<%= wrestler.original_seed %>
|
||||
@@ -60,13 +47,12 @@
|
||||
Yes
|
||||
<% end %></td>
|
||||
<td><%= wrestler.next_match_bout_number %> <%= wrestler.next_match_mat_name %></td>
|
||||
<td>
|
||||
<%= link_to 'Show', wrestler , :class=>"btn btn-default btn-sm" %>
|
||||
<% if can? :manage, wrestler.school %>
|
||||
<%= link_to 'Edit', edit_wrestler_path(wrestler),:class=>"btn btn-primary btn-sm" %>
|
||||
<%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger btn-sm" %>
|
||||
<% end %>
|
||||
</td>
|
||||
<% if can? :manage, wrestler.school %>
|
||||
<td>
|
||||
<%= link_to '', edit_wrestler_path(wrestler),:class=>"fas fa-edit" %>
|
||||
<%= link_to '', wrestler, method: :delete, data: { confirm: "Are you sure you want to delete #{wrestler.name}? This will delete all of his matches." }, :class=>"fas fa-trash-alt" %>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user