<%= javascript_include_tag "decidim/slug_form" %>

<%= t "conferences.form.title", scope: "decidim.admin" %>

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

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

<%= form.text_field :hashtag %>
<%= form.check_box :promoted %>
<%= form.translated :editor, :short_description %>
<%= form.translated :editor, :description, toolbar: :full, lines: 25 %>
<%= form.translated :editor, :objectives, toolbar: :full, lines: 25 %>
<%= form.text_field :location %>
<%= form.upload :hero_image %>
<%= form.upload :banner_image %>
<%= form.check_box :scopes_enabled %>
<%= scopes_picker_field form, :scope_id, root: nil %>
<%= form.check_box :show_statistics %>
<%= form.date_field :start_date %>
<%= form.date_field :end_date %>
<%= form.check_box :registrations_enabled %>

<%= t(".registrations_count", count: current_participatory_space.present? ? current_participatory_space.conference_registrations.count : 0) %>

<%= form.number_field :available_slots %>

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

<%= form.translated :editor, :registration_terms %>
<% if @form.processes_for_select %> <%= form.select :participatory_processes_ids, options_for_select(@form.processes_for_select, selected: processes_selected ), { include_blank: true }, { multiple: true, class: "chosen-select" } %> <% end %>
<% if @form.assemblies_for_select %> <%= form.select :assemblies_ids, options_for_select(@form.assemblies_for_select, selected: assemblies_selected ), { include_blank: true }, { multiple: true, class: "chosen-select" } %> <% end %>
<% if @form.consultations_for_select %> <%= form.select :consultations_ids, options_for_select(@form.consultations_for_select, selected: consultations_selected ), { include_blank: true }, { multiple: true, class: "chosen-select" } %> <% end %>
<%= javascript_include_tag "decidim/conferences/admin/conferences" %>