Rende il CRM comodo da usare anche da cellulare.
CI / scan_ruby (push) Failing after 11m43s
CI / scan_js (push) Successful in 11m18s
CI / lint (push) Failing after 11m56s

Aggiunge navigazione mobile dedicata e trasforma le principali liste operative in layout più leggibili e facili da toccare.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 10:55:50 +02:00
co-authored by Cursor
parent d98c3e87a8
commit 0e8730b889
24 changed files with 683 additions and 295 deletions
+22 -4
View File
@@ -1,20 +1,36 @@
<div class="space-y-6">
<div class="flex flex-wrap items-end justify-between gap-3">
<div>
<h1 class="text-2xl font-semibold tracking-tight">Template email</h1>
<h1 class="text-xl font-semibold tracking-tight md:text-2xl">Template email</h1>
<p class="mt-1 text-sm text-zinc-500">
<%= link_to "Invii", dashboard_mailings_path, class: "hover:underline" %>
· HTML riutilizzabile con variabili della scheda cliente.
</p>
</div>
<%= link_to "Nuovo template", new_mail_template_path, class: btn_primary %>
<%= link_to "Nuovo template", new_mail_template_path, class: "#{btn_primary} w-full sm:w-auto" %>
</div>
<div class="overflow-hidden <%= card_class %>">
<div class="<%= card_class %>">
<% if @mail_templates.empty? %>
<p class="p-6 text-sm text-zinc-500">Nessun template. Creane uno e usalo come base per gli invii.</p>
<% else %>
<table class="<%= table_class %>">
<div class="divide-y divide-zinc-100 dark:divide-zinc-800 md:hidden">
<% @mail_templates.each do |template| %>
<div class="p-4">
<div class="flex items-start justify-between gap-3">
<div class="min-w-0">
<div class="font-semibold"><%= template.name %></div>
<div class="mt-0.5 break-anywhere text-sm text-zinc-600 dark:text-zinc-300"><%= template.subject %></div>
<div class="mt-1 text-xs text-zinc-500"><%= template.project_id? ? current_project.name : "Tutti i progetti" %></div>
</div>
<%= link_to "Modifica", edit_mail_template_path(template), class: "text-sm text-zinc-700 hover:underline dark:text-zinc-300" %>
</div>
</div>
<% end %>
</div>
<div class="hidden md:block">
<div class="<%= table_wrap_class %>">
<table class="<%= table_class %>">
<thead class="border-b border-zinc-100 bg-zinc-50 text-left text-xs font-medium uppercase tracking-wide text-zinc-500 dark:border-zinc-800 dark:bg-zinc-800 dark:text-zinc-400">
<tr>
<th class="px-4 py-3">Nome</th>
@@ -36,6 +52,8 @@
<% end %>
</tbody>
</table>
</div>
</div>
<% end %>
</div>
</div>