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>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<div class="space-y-8">
|
||||
<div>
|
||||
<h1 class="text-3xl font-semibold tracking-tight">I miei progetti</h1>
|
||||
<p class="mt-1 text-zinc-500">Ogni progetto è un CRM dedicato, con dashboard e dati separati.</p>
|
||||
</div>
|
||||
|
||||
<% if @projects.any? %>
|
||||
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<% @projects.each do |project| %>
|
||||
<%= link_to project_root_path(project_code: project.code),
|
||||
class: "group rounded-2xl border border-zinc-200 bg-white text-zinc-900 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-100 p-6 transition hover:border-zinc-400 dark:hover:border-zinc-500" do %>
|
||||
<div class="text-xs font-semibold uppercase tracking-wide text-zinc-400"><%= project.code %></div>
|
||||
<div class="mt-2 text-xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-100"><%= project.name %></div>
|
||||
<% if project.description.present? %>
|
||||
<p class="mt-2 text-sm text-zinc-500 line-clamp-2"><%= project.description %></p>
|
||||
<% end %>
|
||||
<div class="mt-4 text-sm font-medium text-zinc-900 dark:text-zinc-100">Apri CRM →</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if current_user.admin? %>
|
||||
<button type="button"
|
||||
data-action="modal#show"
|
||||
class="flex min-h-[10rem] flex-col items-center justify-center rounded-2xl border border-dashed border-zinc-300 bg-transparent p-6 text-sm font-medium text-zinc-500 transition hover:border-zinc-500 hover:text-zinc-900 dark:border-zinc-700 dark:hover:border-zinc-400 dark:hover:text-zinc-100">
|
||||
<span class="text-2xl leading-none">+</span>
|
||||
<span class="mt-2">Nuovo progetto</span>
|
||||
</button>
|
||||
<% end %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="rounded-xl border border-amber-200 bg-amber-50 p-6 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-100">
|
||||
Nessun progetto disponibile.
|
||||
<% if current_user.admin? %>
|
||||
<%= button_tag "Crea il primo progetto", type: "button", data: { action: "modal#show" }, class: "mt-3 #{btn_primary}" %>
|
||||
<% else %>
|
||||
Chiedi a un amministratore di abilitarti.
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user