From f0cf2b0c24bb5729669a4917cf65fe99f35a1fc5 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 22 Jan 2024 15:22:22 -0600 Subject: [PATCH] Centered all index pages table headers and add new buttons --- app/views/employers/_form.html.erb | 4 +++- app/views/employers/index.html.erb | 6 ++++-- app/views/participants/index.html.erb | 7 ++++--- app/views/vendors/index.html.erb | 7 ++++--- app/views/workers/index.html.erb | 7 ++++--- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/app/views/employers/_form.html.erb b/app/views/employers/_form.html.erb index 48ba499..82b61ce 100644 --- a/app/views/employers/_form.html.erb +++ b/app/views/employers/_form.html.erb @@ -52,8 +52,10 @@
- <%= form.submit class: 'btn btn-primary' %> + <%= form.submit class: 'btn btn-success' %>
+ + <% end %> diff --git a/app/views/employers/index.html.erb b/app/views/employers/index.html.erb index ecb01d0..adc2cd2 100644 --- a/app/views/employers/index.html.erb +++ b/app/views/employers/index.html.erb @@ -1,7 +1,9 @@
-

Employers

+

Employers

- <%= link_to 'New Employer', new_employer_path, class: 'btn btn-primary mb-3' %> +
+ <%= link_to 'New Employer', new_employer_path, class: 'btn btn-primary mb-3' %> +
diff --git a/app/views/participants/index.html.erb b/app/views/participants/index.html.erb index a70cd1a..d3311c1 100644 --- a/app/views/participants/index.html.erb +++ b/app/views/participants/index.html.erb @@ -1,6 +1,10 @@

Participants

+
+ <%= link_to 'New Participant', new_participant_path, class: 'btn btn-primary mb-3' %> +
+
@@ -42,7 +46,4 @@
-
- <%= link_to 'New Participant', new_participant_path, class: 'btn btn-success' %> -
diff --git a/app/views/vendors/index.html.erb b/app/views/vendors/index.html.erb index f67d497..6f109b6 100644 --- a/app/views/vendors/index.html.erb +++ b/app/views/vendors/index.html.erb @@ -1,6 +1,10 @@

Vendors

+
+ <%= link_to 'New Vendor', new_vendor_path, class: 'btn btn-success mb-3' %> +
+ @@ -33,7 +37,4 @@
-
- <%= link_to 'New Vendor', new_vendor_path, class: 'btn btn-success' %> -
diff --git a/app/views/workers/index.html.erb b/app/views/workers/index.html.erb index 55a7c90..aaded73 100644 --- a/app/views/workers/index.html.erb +++ b/app/views/workers/index.html.erb @@ -1,6 +1,10 @@

Workers

+
+ <%= link_to 'New Worker', new_worker_path, class: 'btn btn-success mb-3' %> +
+ @@ -29,7 +33,4 @@
-
- <%= link_to 'New Worker', new_worker_path, class: 'btn btn-success' %> -