<%= form.text_field :title, autofocus: true, class: "js-hashtags", hashtaggable: true %>
<%= text_editor_for(form, :description, hashtaggable: true) %>
<%= form.select :type_of_meeting,
@form.type_of_meeting_select,
{ include_blank: t(".select_a_meeting_type") },
{ multiple: false } %>
<%= form.geocoding_field :address, input_html: { required: false } %>
<%= t(".address_help") %>
<%= form.text_area :location %>
<%= t(".location_help") %>
<%= form.text_area :location_hints %>
<%= t(".location_hints_help") %>
<%= form.text_field :online_meeting_url %>
<%= t(".online_meeting_url_help") %>
<%= form.select :iframe_embed_type,
@form.iframe_embed_type_select,
{ multiple: false } %>
<%= t(".show_embedded_iframe_help", domains: Decidim::Meetings.embeddable_services&.join(" ")) %>
<%= form.select :iframe_access_level,
@form.iframe_access_level_select,
{ include_blank: t(".select_an_iframe_access_level") },
{ multiple: false } %>
<%= form.datetime_field :start_time %>
<%= form.datetime_field :end_time %>
<% if current_participatory_space.has_subscopes? %>
<%= scopes_picker_field form, :decidim_scope_id %>
<% end %>
<%= form.categories_select :decidim_category_id, current_participatory_space.categories, prompt: t(".select_a_category"), disable_parents: false %>
<%= form.select :registration_type,
@form.registration_type_select,
{ include_blank: t(".select_a_registration_type") },
{ multiple: false } %>
<%= form.number_field :available_slots %>
<%= t(".available_slots_help") %>
<%= text_editor_for(form, :registration_terms) %>
<%= form.text_field :registration_url %>
<%= t(".registration_url_help") %>
<%= form.select(
:user_group_id,
Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.map{|g| [g.name, g.id]},
prompt: current_user.name,
label: t(".create_as")
) %>
<% content_for :js_content do %>
<%= javascript_pack_tag "decidim_meetings" %>
<% end %>