From f2fee7965a67fa102165fef7449c325c12135ec2 Mon Sep 17 00:00:00 2001 From: Kris Date: Sat, 3 Feb 2024 09:04:38 -0500 Subject: [PATCH] added some styling from bootstrap5 --- app/views/layouts/application.html.erb | 10 ++++++++- app/views/suggestions/_form.html.erb | 6 +++--- app/views/suggestions/_suggestion.html.erb | 25 ++++++++++------------ app/views/suggestions/index.html.erb | 2 +- app/views/suggestions/new.html.erb | 2 +- config/routes.rb | 2 +- 6 files changed, 26 insertions(+), 21 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 8577633..96cc499 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -11,6 +11,14 @@ - <%= yield %> + + +
+ <%= yield %> +
diff --git a/app/views/suggestions/_form.html.erb b/app/views/suggestions/_form.html.erb index d880899..aa2204f 100644 --- a/app/views/suggestions/_form.html.erb +++ b/app/views/suggestions/_form.html.erb @@ -22,11 +22,11 @@
- <%= form.label :sent, style: "display: block" %> - <%= form.check_box :sent %> + <%# form.label :sent, style: "display: block" %> + <%# form.check_box :sent %>
- <%= form.submit %> + <%= form.submit "Send Suggestion", class: "btn btn-primary" %>
<% end %> diff --git a/app/views/suggestions/_suggestion.html.erb b/app/views/suggestions/_suggestion.html.erb index 780929c..862d7b0 100644 --- a/app/views/suggestions/_suggestion.html.erb +++ b/app/views/suggestions/_suggestion.html.erb @@ -1,17 +1,14 @@ -
-

- Subject: - <%= suggestion.subject %> -

+
+
+ +
<%= suggestion.subject %>
-

- Body: - <%= suggestion.body %> -

+

+ <%= suggestion.body %> +

-

- Sent: - <%= suggestion.sent %> -

-
+ +
+
+ \ No newline at end of file diff --git a/app/views/suggestions/index.html.erb b/app/views/suggestions/index.html.erb index 9f055ec..e2fcffd 100644 --- a/app/views/suggestions/index.html.erb +++ b/app/views/suggestions/index.html.erb @@ -11,4 +11,4 @@ <% end %> -<%= link_to "New suggestion", new_suggestion_path %> +<%= link_to "New suggestion", new_suggestion_path, class: "btn btn-primary" %> diff --git a/app/views/suggestions/new.html.erb b/app/views/suggestions/new.html.erb index 176a72a..e1e9942 100644 --- a/app/views/suggestions/new.html.erb +++ b/app/views/suggestions/new.html.erb @@ -5,5 +5,5 @@
- <%= link_to "Back to suggestions", suggestions_path %> + <%= link_to "Back to suggestions", suggestions_path, class: "btn" %>
diff --git a/config/routes.rb b/config/routes.rb index f75ae6d..428b932 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,5 +7,5 @@ Rails.application.routes.draw do get "up" => "rails/health#show", as: :rails_health_check # Defines the root path route ("/") - # root "posts#index" + root "suggestions#new" end