Files
eminuxCRM/app/views/imports/preview.html.erb
T
eminuxandCursor b5737a7ee7 Rende leggibili card, badge e testi mute in tema scuro.
Le righe task di oggi restavano crema con testo chiaro; i badge e gli heading senza dark: si perdevano sullo sfondo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 07:36:48 +02:00

18 lines
913 B
ERB

<div class="space-y-4">
<h1 class="text-2xl font-semibold">Anteprima import</h1>
<div class="overflow-x-auto rounded-xl border border-zinc-200 bg-white text-zinc-900 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-100">
<table class="min-w-full text-xs">
<thead class="bg-zinc-50 dark:bg-zinc-800">
<tr><% @preview[:headers].each do |h| %><th class="px-2 py-2 text-left"><%= h %></th><% end %></tr>
</thead>
<tbody>
<% @preview[:rows].each do |row| %>
<tr class="border-t"><% @preview[:headers].each do |h| %><td class="px-2 py-1"><%= row[h] %></td><% end %></tr>
<% end %>
</tbody>
</table>
</div>
<p class="text-sm text-slate-500">Torna indietro e conferma l'import senza anteprima per caricare i dati.</p>
<%= link_to "Torna all'import", new_import_path, class: "text-emerald-700 hover:underline dark:text-emerald-400" %>
</div>