added some styling from bootstrap5
This commit is contained in:
@@ -11,6 +11,14 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<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 %>
|
<%= yield %>
|
||||||
|
</div><!--div-->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -22,11 +22,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= form.label :sent, style: "display: block" %>
|
<%# form.label :sent, style: "display: block" %>
|
||||||
<%= form.check_box :sent %>
|
<%# form.check_box :sent %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= form.submit %>
|
<%= form.submit "Send Suggestion", class: "btn btn-primary" %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
<div id="<%= dom_id suggestion %>">
|
<div class="card" style="width: 18rem;">
|
||||||
<p>
|
<div id="<%= dom_id suggestion %>" class="card-body">
|
||||||
<strong>Subject:</strong>
|
|
||||||
<%= suggestion.subject %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
<h5 class="card-title"><%= suggestion.subject %></h5>
|
||||||
<strong>Body:</strong>
|
|
||||||
|
<p class="card-text">
|
||||||
<%= suggestion.body %>
|
<%= suggestion.body %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
|
||||||
<strong>Sent:</strong>
|
|
||||||
<%= suggestion.sent %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -11,4 +11,4 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= link_to "New suggestion", new_suggestion_path %>
|
<%= link_to "New suggestion", new_suggestion_path, class: "btn btn-primary" %>
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= link_to "Back to suggestions", suggestions_path %>
|
<%= link_to "Back to suggestions", suggestions_path, class: "btn" %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ Rails.application.routes.draw do
|
|||||||
get "up" => "rails/health#show", as: :rails_health_check
|
get "up" => "rails/health#show", as: :rails_health_check
|
||||||
|
|
||||||
# Defines the root path route ("/")
|
# Defines the root path route ("/")
|
||||||
# root "posts#index"
|
root "suggestions#new"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user