added some styling from bootstrap5

This commit is contained in:
Kris
2024-02-03 09:04:38 -05:00
parent 2f398caa90
commit f2fee7965a
6 changed files with 26 additions and 21 deletions

View File

@@ -22,11 +22,11 @@
</div>
<div>
<%= form.label :sent, style: "display: block" %>
<%= form.check_box :sent %>
<%# form.label :sent, style: "display: block" %>
<%# form.check_box :sent %>
</div>
<div>
<%= form.submit %>
<%= form.submit "Send Suggestion", class: "btn btn-primary" %>
</div>
<% end %>

View File

@@ -1,17 +1,14 @@
<div id="<%= dom_id suggestion %>">
<p>
<strong>Subject:</strong>
<%= suggestion.subject %>
</p>
<div class="card" style="width: 18rem;">
<div id="<%= dom_id suggestion %>" class="card-body">
<h5 class="card-title"><%= suggestion.subject %></h5>
<p>
<strong>Body:</strong>
<%= suggestion.body %>
</p>
<p class="card-text">
<%= suggestion.body %>
</p>
<p>
<strong>Sent:</strong>
<%= suggestion.sent %>
</p>
</div>
</div>
</div>
</div>

View File

@@ -11,4 +11,4 @@
<% end %>
</div>
<%= link_to "New suggestion", new_suggestion_path %>
<%= link_to "New suggestion", new_suggestion_path, class: "btn btn-primary" %>

View File

@@ -5,5 +5,5 @@
<br>
<div>
<%= link_to "Back to suggestions", suggestions_path %>
<%= link_to "Back to suggestions", suggestions_path, class: "btn" %>
</div>