Commit iniziale di eminuxCRM: CRM Rails con pipeline, campagne email e Docker.
CI / scan_ruby (push) Failing after 11m20s
CI / scan_js (push) Successful in 10m35s
CI / lint (push) Has been cancelled

Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-17 23:01:48 +02:00
co-authored by Cursor
commit c4e5f289cf
258 changed files with 11293 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<%= form_with model: mail_template, class: "grid gap-6 lg:grid-cols-[1fr_16rem]" do |f| %>
<div class="space-y-6 rounded-xl border border-zinc-200 bg-white text-zinc-900 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-100 p-6">
<%= render "shared/errors", object: mail_template %>
<div>
<label class="mb-1 block text-sm font-medium">Nome</label>
<%= f.text_field :name, required: true, class: input_class %>
</div>
<div>
<label class="mb-1 block text-sm font-medium">Oggetto</label>
<%= f.text_field :subject, required: true, class: input_class %>
</div>
<div>
<%= render "shared/wysiwyg_field", form: f, method: :body_html, label: "Corpo HTML" %>
</div>
<div class="flex flex-wrap items-center gap-2 border-t border-zinc-100 pt-4 dark:border-zinc-800">
<%= f.submit mail_template.new_record? ? "Crea template" : "Salva", class: btn_primary %>
<%= link_to "Annulla", mail_templates_path, class: btn_secondary %>
</div>
</div>
<div class="space-y-4">
<%= render "shared/merge_tokens" %>
<% unless mail_template.new_record? %>
<%= button_to "Elimina template", mail_template_path(mail_template), method: :delete,
class: btn_danger,
form: { data: { turbo_confirm: "Eliminare #{mail_template.name}?" } } %>
<% end %>
</div>
<% end %>