Added complete button

This commit is contained in:
KaungKaung
2026-01-28 14:59:13 +06:30
parent 0f5d105be3
commit 7c9e164a9a
6 changed files with 55 additions and 16 deletions

View File

@@ -1,11 +1,5 @@
<%= turbo_stream.append "tasks_list" do %>
<li id="<%= dom_id(@task) %>">
<%= @task.title %> (<%= @task.status %>)
<%= link_to "Destroy", project_task_path(@project, @task), data: {
turbo_method: :delete,
turbo_confirm: "Are you sure?"
} %>
</li>
<%= render partial: "tasks/task", locals: { task: @task } %>
<% end %>
<%= turbo_stream.replace "new_task" do %>