<% content_for :back_link do %> <%= link_to :back do %> <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %> <%= t(".back") %> <% end %> <% end %>
<%== t ".fill_data_help" %> <%= link_to t(".more_information"), decidim.page_path("initiatives"), target: "_blank" %>.

<%= decidim_form_for(@form, url: next_wizard_path, method: :put, html: { class: "form new_initiative_form" }) do |f| %> <%= form_required_explanation %> <%= f.hidden_field :type_id %>
<% unless single_initiative_type? %>
<%= text_field_tag :type_description, strip_tags(translated_attribute(initiative_type.title)), readonly: true %>
<% end %>
<%= f.text_field :title, autofocus: true %>
<%= f.editor :description, lines: 8, toolbar: :full %>
<% signature_type_options = signature_type_options(f.object) %> <% if signature_type_options.length == 1 %> <%= f.hidden_field :signature_type, value: signature_type_options.first.last %> <% else %>
<%= f.select :signature_type, signature_type_options %>
<% end %> <% if scopes.length == 1 %> <%= f.hidden_field :scope_id, value: scopes.first.scope&.id %> <% else %>
<%= f.select :scope_id, scopes.map { |scope| [translated_attribute(scope.scope_name), scope&.scope&.id] }, required: true, include_blank: t(".select_scope") %>
<% end %> <% if initiative_type.custom_signature_end_date_enabled? %>
<%= f.date_field :signature_end_date %>
<% end %> <% if initiative_type.area_enabled? %>
<%= f.areas_select :area_id, areas_for_select(current_organization), prompt: t(".select_area") %>
<% end %> <% if Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.any? %>
<%= f.select :decidim_user_group_id, Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.map { |g| [g.name, g.id] }, include_blank: current_user.name %>
<% end %> <% if initiative_type.attachments_enabled? %>
<%= t("attachment_legend", scope: "decidim.initiatives.form") %>
<%= f.attachment :documents, multiple: true, label: t("add_attachments", scope: "decidim.initiatives.form") %>
<% end %>
<%= f.submit t(".continue"), class: "button expanded", data: { disable_with: true } %>
<% end %>