All current index pages now have consistent styling
This commit is contained in:
parent
aefe442be6
commit
97bde74af0
|
@ -2,11 +2,13 @@
|
|||
<h1 class="mb-4 text-center">Employers</h1>
|
||||
|
||||
<div class="text-center mt-3">
|
||||
<%= link_to 'New Employer', new_employer_path, class: 'btn btn-primary mb-3' %>
|
||||
</div>
|
||||
<%= link_to 'New Employer', new_employer_path, class: 'btn btn-dark mb-3' %>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<thead class="table-dark">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Address</th>
|
||||
|
@ -25,9 +27,15 @@
|
|||
<td><%= employer.email %></td>
|
||||
<td><%= employer.dob.strftime('%B %d, %Y') if employer.dob %></td>
|
||||
<td>
|
||||
<%= link_to 'Show', employer, class: 'btn btn-sm btn-info' %>
|
||||
<%= link_to 'Edit', edit_employer_path(employer), class: 'btn btn-sm btn-warning' %>
|
||||
</td>
|
||||
<%= link_to employer, class: 'btn btn-sm btn-secondary' do %>
|
||||
<i class="bi bi-eye"></i> <!-- Eyeball icon for 'Show' -->
|
||||
<% end %>
|
||||
|
||||
|
||||
<%= link_to edit_employer_path(employer), class: 'btn btn-sm btn-info' do %>
|
||||
<i class="bi bi-pencil-fill" style="color: white;"></i> <!-- Pencil icon for 'Edit' -->
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
<%= link_to participant, class: 'btn btn-sm btn-secondary' do %>
|
||||
<i class="bi bi-eye"></i><!-- Eyeball icon for 'Show' -->
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<%= link_to edit_participant_path(participant), class: 'btn btn-sm btn-info' do %>
|
||||
<i class="bi bi-pencil-fill" style="color: white;"></i> <!-- Pencil icon for 'Edit' with white color -->
|
||||
<% end %>
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
<h1 class="mb-4 text-center">Vendors</h1>
|
||||
|
||||
<div class="text-center mt-3">
|
||||
<%= link_to 'New Vendor', new_vendor_path, class: 'btn btn-success mb-3' %>
|
||||
<%= link_to 'New Vendor', new_vendor_path, class: 'btn btn-dark mb-3' %>
|
||||
</div>
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<thead class="table-dark">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Address</th>
|
||||
|
@ -29,12 +29,15 @@
|
|||
<td><%= vendor.tin %></td>
|
||||
<td><%= vendor.contact %></td>
|
||||
<td>
|
||||
<%= link_to 'Show', vendor_path(vendor), class: 'btn btn-sm btn-info' %>
|
||||
<%= link_to 'Edit', edit_vendor_path(vendor), class: 'btn btn-sm btn-primary' %>
|
||||
<%= link_to vendor_path(vendor), class: 'btn btn-sm btn-secondary' do %>
|
||||
<i class="bi bi-eye"></i> <!-- Eyeball icon for 'Show' -->
|
||||
<% end %>
|
||||
<%= link_to edit_vendor_path(vendor), class: 'btn btn-sm btn-info' do %>
|
||||
<i class="bi bi-pencil-fill" style="color: white;"></i> <!-- Pencil icon for 'Edit' -->
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
<h1 class="mb-4 text-center">Workers</h1>
|
||||
|
||||
<div class="text-center mt-3">
|
||||
<%= link_to 'New Worker', new_worker_path, class: 'btn btn-success mb-3' %>
|
||||
<%= link_to 'New Worker', new_worker_path, class: 'btn btn-dark mb-3' %>
|
||||
</div>
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<thead class="table-dark">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
|
@ -27,12 +27,16 @@
|
|||
<td><%= worker.email %></td>
|
||||
<td><%= worker.dob.strftime('%B %d, %Y') if worker.dob %></td>
|
||||
<td>
|
||||
<%= link_to 'Show', worker_path(worker), class: 'btn btn-sm btn-info' %>
|
||||
<%= link_to 'Edit', edit_worker_path(worker), class: 'btn btn-sm btn-primary' %>
|
||||
<%= link_to worker_path(worker), class: 'btn btn-sm btn-secondary' do %>
|
||||
<i class="bi bi-eye"></i> <!-- Eyeball icon for 'Show' -->
|
||||
<% end %>
|
||||
<%= link_to edit_worker_path(worker), class: 'btn btn-sm btn-info' do %>
|
||||
<i class="bi bi-pencil-fill" style="color: white;"></i> <!-- Pencil icon for 'Edit' -->
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue