Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
1.2 KiB
ERB
19 lines
1.2 KiB
ERB
<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>
|