<% 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 %>
<% if single_initiative_type? %> <%= f.hidden_field :type_id %> <% else %>
<%= f.select :type_id, initiative_type_options, {}, { disabled: !@form.signature_type_updatable?, "data-scope-selector": "initiative_decidim_scope_id", "data-scope-id": f.object.scope_id.to_s, "data-scope-search-url": decidim_initiatives.initiative_type_scopes_search_url, "data-signature-types-selector": "initiative_signature_type", "data-signature-type": current_initiative&.signature_type, "data-signature-types-search-url": decidim_initiatives.initiative_type_signature_types_search_url } %>
<% end %>
<%= f.text_field :title, autofocus: true %>
<%= text_editor_for(f, :description, lines: 8, toolbar: :content) %>
<%= f.text_field :hashtag %>
<% 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 initiative_type.custom_signature_end_date_enabled? %>
<%= f.date_field :signature_end_date %>
<% 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.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, help_text: t(".decidim_user_group_id_help") %>
<% end %> <% if initiative_type.attachments_enabled? %>
<%= t("attachment_legend", scope: "decidim.initiatives.form") %>
<%= f.file_field :add_documents, multiple: true, label: t("add_attachments", scope: "decidim.initiatives.form") %>
<% end %>
<%= f.submit t(".continue"), class: "button expanded", data: { disable_with: true } %>
<% end %>