From 97bde74af01187f1b6f551c67ce4fdfce1bb9f29 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 29 Jan 2024 21:31:27 -0600 Subject: [PATCH] All current index pages now have consistent styling --- app/views/employers/index.html.erb | 20 ++++++++++++++------ app/views/participants/index.html.erb | 4 ++-- app/views/vendors/index.html.erb | 13 ++++++++----- app/views/workers/index.html.erb | 14 +++++++++----- 4 files changed, 33 insertions(+), 18 deletions(-) diff --git a/app/views/employers/index.html.erb b/app/views/employers/index.html.erb index adc2cd2..b2742d7 100644 --- a/app/views/employers/index.html.erb +++ b/app/views/employers/index.html.erb @@ -2,11 +2,13 @@

Employers

- <%= link_to 'New Employer', new_employer_path, class: 'btn btn-primary mb-3' %> -
+ <%= link_to 'New Employer', new_employer_path, class: 'btn btn-dark mb-3' %> + + + - + @@ -25,9 +27,15 @@ + <%= link_to employer, class: 'btn btn-sm btn-secondary' do %> + + <% end %> + + + <%= link_to edit_employer_path(employer), class: 'btn btn-sm btn-info' do %> + + <% end %> + <% end %> diff --git a/app/views/participants/index.html.erb b/app/views/participants/index.html.erb index f8f467e..01479a5 100644 --- a/app/views/participants/index.html.erb +++ b/app/views/participants/index.html.erb @@ -38,8 +38,8 @@ <%= link_to participant, class: 'btn btn-sm btn-secondary' do %> <% end %> - -
Name Address<%= employer.email %> <%= employer.dob.strftime('%B %d, %Y') if employer.dob %> - <%= link_to 'Show', employer, class: 'btn btn-sm btn-info' %> - <%= link_to 'Edit', edit_employer_path(employer), class: 'btn btn-sm btn-warning' %> -
+ + <%= link_to edit_participant_path(participant), class: 'btn btn-sm btn-info' do %> <% end %> diff --git a/app/views/vendors/index.html.erb b/app/views/vendors/index.html.erb index 6f109b6..24dac43 100644 --- a/app/views/vendors/index.html.erb +++ b/app/views/vendors/index.html.erb @@ -2,11 +2,11 @@

Vendors

- <%= 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' %>
- + @@ -29,12 +29,15 @@ <% end %>
Name Address<%= vendor.tin %> <%= vendor.contact %> - <%= 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 %> + + <% end %> + <%= link_to edit_vendor_path(vendor), class: 'btn btn-sm btn-info' do %> + + <% end %>
- diff --git a/app/views/workers/index.html.erb b/app/views/workers/index.html.erb index 81b24b4..89637aa 100644 --- a/app/views/workers/index.html.erb +++ b/app/views/workers/index.html.erb @@ -2,11 +2,11 @@

Workers

- <%= 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' %>
- + @@ -27,12 +27,16 @@ <% end %>
First Name Last Name<%= worker.email %> <%= worker.dob.strftime('%B %d, %Y') if worker.dob %> - <%= 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 %> + + <% end %> + <%= link_to edit_worker_path(worker), class: 'btn btn-sm btn-info' do %> + + <% end %>
- +