From ab57309f5c7f11a7aaa6ae1087803f54ebb7e822 Mon Sep 17 00:00:00 2001 From: Emiliano Frascaro Date: Wed, 19 Aug 2026 11:23:21 +0200 Subject: [PATCH] Aggiunge pulsante Modifica ai task nella scheda organizzazione. Disponibile nel banner prossima azione, nella lista pendenti e nei task completati. Co-authored-by: Cursor --- app/views/organizations/show.html.erb | 14 ++++++++++---- app/views/shared/_task_list.html.erb | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/views/organizations/show.html.erb b/app/views/organizations/show.html.erb index b728051..b180621 100644 --- a/app/views/organizations/show.html.erb +++ b/app/views/organizations/show.html.erb @@ -55,7 +55,10 @@
<%= @next_task.title %>
<%= format_dt(@next_task.due_at) %> · <%= @next_task.task_type_label %> · <%= priority_badge(@next_task.priority) %>
- <%= button_to "Completa", complete_task_path(@next_task), method: :patch, class: "rounded-lg bg-emerald-600 px-4 py-2 text-sm font-medium text-white" %> +
+ <%= button_to "Completa", complete_task_path(@next_task), method: :patch, class: "rounded-lg bg-emerald-600 px-4 py-2 text-sm font-medium text-white" %> + <%= link_to "Modifica", edit_task_path(@next_task), class: "rounded-lg border border-amber-400 bg-white px-4 py-2 text-sm font-medium text-amber-900 hover:bg-amber-50 dark:bg-transparent dark:text-amber-100 dark:hover:bg-amber-900/30" %> +
<% end %> @@ -147,11 +150,14 @@

Pendenti

<%= render "shared/task_list", tasks: @pending_tasks %>

Completati

-