Added complete button
This commit is contained in:
10
app/views/tasks/complete.turbo_stream.erb
Normal file
10
app/views/tasks/complete.turbo_stream.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%= turbo_stream.replace dom_id(@task) do %>
|
||||
<li>
|
||||
<%= @task.title %> (<%= @task.status %>)
|
||||
|
||||
<%= link_to "Destroy", project_task_path(@project, @task), data: {
|
||||
turbo_method: :delete,
|
||||
turbo_confirm: "Are you sure?"
|
||||
} %>
|
||||
</li>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user