<%= javascript_include_tag "decidim/slug_form" %>

<%= t(".title") %>

<%= form.translated :text_field, :title, autofocus: true %>
<%= form.translated :text_field, :subtitle %>
<%= form.text_field :slug %>

<%== t(".slug_help", url: decidim_form_slug_url(:assemblies, form.object.slug)) %>

<%= form.text_field :hashtag %>
<%= form.translated :editor, :short_description %>
<%= form.translated :editor, :description, toolbar: :full, lines: 25 %>
<%= form.translated :editor, :purpose_of_action %>
<%= form.translated :editor, :composition %>
<%= form.translated :editor, :internal_organisation %>

<%= t(".duration") %>

<%= form.date_field :creation_date %>
<%= form.date_field :included_at %>

<%== t(".included_at_help") %>

<%= form.date_field :duration %>

<%== t(".duration_help") %>

<%= form.date_field :closing_date %>
<%= form.translated :editor, :closing_date_reason %>

<%= t(".images") %>

<%= form.upload :hero_image %>
<%= form.upload :banner_image %>

<%= t(".filters") %>

<%= form.check_box :scopes_enabled %>
<%= scopes_picker_field form, :scope_id, root: nil %>
<%= form.areas_select :area_id, areas_for_select(current_organization), selected: current_assembly.try(:decidim_area_id), include_blank: t(".select_an_area") %>

<%= t(".metadata") %>

<%= form.translated :text_field, :participatory_scope %>
<%= form.translated :text_field, :participatory_structure %>
<%= form.translated :text_field, :meta_scope %>
<%= form.translated :text_field, :developer_group %>
<%= form.translated :text_field, :local_area %>
<%= form.translated :text_field, :target %>

<%= t(".visbility") %>

<% if params[:parent_id].present? %> <%= form.hidden_field :parent_id, value: @form.parent_id %> <% else %>
<%= form.select :parent_id, options_from_collection_for_select( parent_assemblies_for_select, :id, :translated_title, selected: current_assembly.try(:parent_id) ), include_blank: t(".select_parent_assembly") %>
<% end %>
<%= form.check_box :promoted %>
<%= form.check_box :private_space %>
<%= form.check_box :is_transparent %>

<%= t(".other") %>

<%= form.select :created_by, @form.created_by_for_select, { include_blank: t(".select_a_created_by") }, { multiple: false } %>
<%= form.translated :text_field, :created_by_other %>
<%= form.select :decidim_assemblies_type_id, @form.assembly_types_for_select, { include_blank: t(".select_an_assembly_type") }, { multiple: false } %>
<% if @form.processes_for_select %> <%= form.select :participatory_processes_ids, options_for_select( @form.processes_for_select, selected: processes_selected ), { include_blank: false }, { multiple: true, class: "chosen-select" } %> <% end %>
<%= form.translated :editor, :special_features %>
<%= form.social_field :text_field, :social_handlers, Decidim::Assembly::SOCIAL_HANDLERS, label: t("social_handlers", scope: "decidim.assemblies.admin.assemblies.form") %>
<%= form.check_box :show_statistics %>
<%= javascript_include_tag "decidim/assemblies/admin/assemblies" %>