From 4fcec416f84794e35e80ca91023f375784a191da Mon Sep 17 00:00:00 2001 From: Kris Date: Sat, 3 Feb 2024 11:03:02 -0500 Subject: [PATCH] more bootstrap styling --- app/views/layouts/application.html.erb | 2 +- app/views/suggestions/_form.html.erb | 14 ++++++++------ app/views/suggestions/_suggestion.html.erb | 1 - app/views/suggestions/index.html.erb | 2 +- app/views/suggestions/new.html.erb | 2 +- app/views/suggestions/show.html.erb | 6 +++--- 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 96cc499..5033b38 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -14,7 +14,7 @@
diff --git a/app/views/suggestions/_form.html.erb b/app/views/suggestions/_form.html.erb index aa2204f..44315b8 100644 --- a/app/views/suggestions/_form.html.erb +++ b/app/views/suggestions/_form.html.erb @@ -11,21 +11,23 @@
<% end %> -
+
+ + <%= form.text_field :subject, class: "form-control" %> <%= form.label :subject, style: "display: block" %> - <%= form.text_field :subject %>
- -
+
+
+ + <%= form.text_area :body, class: "form-control", style: "height: 100px" %> <%= form.label :body, style: "display: block" %> - <%= form.text_area :body %>
<%# form.label :sent, style: "display: block" %> <%# form.check_box :sent %>
- +
<%= form.submit "Send Suggestion", class: "btn btn-primary" %>
diff --git a/app/views/suggestions/_suggestion.html.erb b/app/views/suggestions/_suggestion.html.erb index 862d7b0..18cf5fb 100644 --- a/app/views/suggestions/_suggestion.html.erb +++ b/app/views/suggestions/_suggestion.html.erb @@ -11,4 +11,3 @@
- \ No newline at end of file diff --git a/app/views/suggestions/index.html.erb b/app/views/suggestions/index.html.erb index e2fcffd..fa17910 100644 --- a/app/views/suggestions/index.html.erb +++ b/app/views/suggestions/index.html.erb @@ -6,7 +6,7 @@ <% @suggestions.each do |suggestion| %> <%= render suggestion %>

- <%= link_to "Show this suggestion", suggestion %> + <%= link_to "View this suggestion", suggestion, class: 'btn btn-sm btn-secondary' %>

<% end %> diff --git a/app/views/suggestions/new.html.erb b/app/views/suggestions/new.html.erb index e1e9942..2c421ed 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, class: "btn" %> + <%= link_to "Back to suggestions", suggestions_path, class: "btn btn-sm btn-secondary" %>
diff --git a/app/views/suggestions/show.html.erb b/app/views/suggestions/show.html.erb index fe368ac..a3f5c82 100644 --- a/app/views/suggestions/show.html.erb +++ b/app/views/suggestions/show.html.erb @@ -3,8 +3,8 @@ <%= render @suggestion %>
- <%= link_to "Edit this suggestion", edit_suggestion_path(@suggestion) %> | - <%= link_to "Back to suggestions", suggestions_path %> + <%= link_to "Edit this suggestion", edit_suggestion_path(@suggestion), class: "btn btn-sm btn-secondary" %> | + <%= link_to "Back to suggestions", suggestions_path, class: "btn btn-sm btn-secondary" %> - <%= button_to "Destroy this suggestion", @suggestion, method: :delete %> + <%= button_to "Destroy this suggestion", @suggestion, method: :delete, class: "btn btn-sm btn-danger" %>