Files
eminuxCRM/app/views/shared/_merge_tokens.html.erb
T
eminuxandCursor c4e5f289cf
CI / scan_ruby (push) Failing after 11m20s
CI / scan_js (push) Successful in 10m35s
CI / lint (push) Has been cancelled
Commit iniziale di eminuxCRM: CRM Rails con pipeline, campagne email e Docker.
Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 23:01:48 +02:00

18 lines
913 B
ERB
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div class="<%= card_class %> p-4" data-controller="merge-tokens">
<h3 class="text-sm font-semibold">Variabili</h3>
<p class="mt-1 text-xs text-zinc-500">Clicca per inserirle nelloggetto o nel testo, nel punto del cursore. Allinvio diventano i dati della scheda.</p>
<ul class="mt-3 space-y-1 text-xs">
<% MailMerge.catalog.each do |token, label| %>
<li>
<button type="button"
class="flex w-full items-baseline justify-between gap-2 rounded-md px-1 py-1 text-left hover:bg-zinc-100 dark:hover:bg-zinc-800"
data-action="merge-tokens#insert"
data-merge-tokens-token-param="<%= token %>">
<code class="rounded bg-zinc-100 px-1.5 py-0.5 text-zinc-800 dark:bg-zinc-800 dark:text-zinc-100">{{<%= token %>}}</code>
<span class="text-zinc-500"><%= label %></span>
</button>
</li>
<% end %>
</ul>
</div>