added some styling from bootstrap5
This commit is contained in:
@@ -11,6 +11,14 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
|
||||
<nav class="navbar bg-dark border-bottom border-body" data-bs-theme="dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">Default</a>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="container-fluid">
|
||||
<%= yield %>
|
||||
</div><!--div-->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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>
|
||||
@@ -11,4 +11,4 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= link_to "New suggestion", new_suggestion_path %>
|
||||
<%= link_to "New suggestion", new_suggestion_path, class: "btn btn-primary" %>
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<%= link_to "Back to suggestions", suggestions_path %>
|
||||
<%= link_to "Back to suggestions", suggestions_path, class: "btn" %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user