Remove 'done' from task form. Add newest to top. Move done tasks to bottom
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
<h2>Add New Task</h2>
|
||||
|
||||
<%= form_with model: [project, task], local: false do |f| %>
|
||||
<p>
|
||||
<%= f.label :title %><br>
|
||||
@@ -6,7 +8,7 @@
|
||||
|
||||
<p>
|
||||
<%= f.label :status %><br>
|
||||
<%= f.select :status, Task.statuses.keys %>
|
||||
<%= f.select :status, Task.statuses.keys.reject { |s| s == "done" } %>
|
||||
</p>
|
||||
|
||||
<%= f.submit "Create Task" %>
|
||||
|
||||
Reference in New Issue
Block a user