mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-17 13:24:36 +00:00
Removing bootstrap buttons all over the place and replacing with font awesome icons
This commit is contained in:
@@ -5,64 +5,52 @@
|
||||
// pagingType: "bootstrap";
|
||||
// } );
|
||||
</script>
|
||||
<% if user_signed_in? %>
|
||||
<%= link_to 'New Tournament', new_tournament_path, :class=>"btn btn-success" %>
|
||||
<% end %>
|
||||
</br>
|
||||
</br>
|
||||
<table class="table table-striped table-bordered table-condensed" id="tournamentList">
|
||||
<table class="table table-hover" id="tournamentList">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
<th><% if user_signed_in? %><%= link_to ' New Tournament', new_tournament_path, :class=>"fas fa-plus" %></th><% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @tournaments.each do |tournament| %>
|
||||
<tr>
|
||||
<td><%= tournament.name %></td>
|
||||
<td><%= link_to "#{tournament.name}", tournament %></td>
|
||||
<td><%= tournament.date %></td>
|
||||
<td><%= link_to 'Show', tournament, :class=>"btn btn-default btn-sm" %>
|
||||
<% if can? :manage, tournament %>
|
||||
<%= link_to 'Edit', edit_tournament_path(tournament), :class=>"btn btn-primary btn-sm" %>
|
||||
<% end %>
|
||||
<% if can? :destroy, tournament %>
|
||||
<%= link_to 'Destroy', tournament, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger btn-sm" %>
|
||||
<td>
|
||||
<%= link_to '', edit_tournament_path(tournament), :class=>"fas fa-edit" %>
|
||||
<% if can? :destroy, tournament %>
|
||||
<%= link_to '', tournament, method: :delete, data: { confirm: "Are you sure you want to delete #{tournament.name}?" }, :class=>"fas fa-trash-alt" %>
|
||||
<% end %>
|
||||
</td>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<% if @schools.size > 0 %>
|
||||
<h1>My Schools</h1>
|
||||
<br>
|
||||
<br>
|
||||
<table class="table table-striped table-bordered table-condensed" id="tournamentList">
|
||||
<table class="table table-hover" id="tournamentList">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Tournament Name</th>
|
||||
<th>Tournament Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @schools.each do |school| %>
|
||||
<tr>
|
||||
<td><%= school.name %></td>
|
||||
<td><%= link_to "#{school.name}", school %></td>
|
||||
<td><%= school.tournament.name %></td>
|
||||
<td><%= school.tournament.date %></td>
|
||||
<td><%= link_to 'Show', school, :class=>"btn btn-default btn-sm" %>
|
||||
<% if can? :manage, school %>
|
||||
<%= link_to 'Edit', edit_school_path(school), :class=>"btn btn-primary btn-sm" %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user