Remove 'done' from task form. Add newest to top. Move done tasks to bottom

This commit is contained in:
KaungKaung
2026-01-30 11:29:17 +06:30
parent 6716129d4a
commit 4c30a133d3
5 changed files with 17 additions and 15 deletions

View File

@@ -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" %>