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,18 @@
|
||||
<div class="mx-auto max-w-2xl space-y-4">
|
||||
<h1 class="text-2xl font-semibold"><%= @task.new_record? ? "Nuovo task" : "Modifica task" %></h1>
|
||||
<%= form_with model: @task, class: "#{card_class} p-6 space-y-4" do |f| %>
|
||||
<%= render "shared/errors", object: @task %>
|
||||
<%= f.text_field :title, placeholder: "Titolo", required: true, class: input_class %>
|
||||
<%= f.text_area :description, rows: 3, placeholder: "Descrizione", class: input_class %>
|
||||
<%= f.collection_select :organization_id, @organizations, :id, :name, {}, class: input_class %>
|
||||
<%= f.collection_select :assigned_user_id, @users, :id, :full_name, { include_blank: true }, class: input_class %>
|
||||
<%= f.datetime_local_field :due_at, class: input_class %>
|
||||
<%= f.select :priority, Catalog::TASK_PRIORITIES.map { |k,v| [v,k] }, {}, class: input_class %>
|
||||
<%= f.select :task_type, Catalog::TASK_TYPES.map { |k,v| [v,k] }, {}, class: input_class %>
|
||||
<%= f.select :status, Catalog::TASK_STATUSES.map { |k,v| [v,k] }, {}, class: input_class %>
|
||||
<div class="flex gap-2">
|
||||
<%= f.submit class: btn_primary %>
|
||||
<%= link_to "Annulla", tasks_path, class: btn_secondary %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
<%= render "form" %>
|
||||
@@ -0,0 +1,18 @@
|
||||
<div class="space-y-6">
|
||||
<div class="flex items-center justify-between">
|
||||
<h1 class="text-2xl font-semibold">Task</h1>
|
||||
<%= link_to "Nuovo task", new_task_path, class: btn_primary %>
|
||||
</div>
|
||||
<section>
|
||||
<h2 class="mb-2 text-sm font-semibold uppercase text-rose-700">In ritardo</h2>
|
||||
<%= render "shared/task_list", tasks: @overdue_tasks %>
|
||||
</section>
|
||||
<section>
|
||||
<h2 class="mb-2 text-sm font-semibold uppercase text-amber-700">Oggi</h2>
|
||||
<%= render "shared/task_list", tasks: @today_tasks %>
|
||||
</section>
|
||||
<section>
|
||||
<h2 class="mb-2 text-sm font-semibold uppercase text-zinc-600 dark:text-zinc-400">Prossimi 30 giorni</h2>
|
||||
<%= render "shared/task_list", tasks: @upcoming_tasks %>
|
||||
</section>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
<%= render "form" %>
|
||||
Reference in New Issue
Block a user