<%= t ".title" %>

<%= form.select :state, Decidim::Initiative.states.keys.map { |state| [I18n.t(state, scope: "decidim.initiatives.admin_states"), state] }, {}, { disabled: !@form.state_updatable? } %>
<%= form.translated :text_field, :title, autofocus: true, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative) %>
<%= form.translated :editor, :description, toolbar: :full, lines: 8, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative) %>
<%= form.select :type_id, initiative_type_options, {}, { disabled: !@form.signature_type_updatable?, "data-scope-selector": "initiative_decidim_scope_id", "data-scope-id": form.object.decidim_scope_id, "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 } %>
<%= form.select :decidim_scope_id, [], {}, { disabled: !@form.signature_type_updatable? } %>
<% if current_initiative.published? && current_user.admin? %>
<%= form.date_field :signature_start_date %>
<%= form.date_field :signature_end_date %>
<% end %>
<%= form.text_field :hashtag, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative) %>
<%= form.select :signature_type, [], {}, { disabled: !@form.signature_type_updatable? } %>
<% if current_initiative.accepts_offline_votes? && current_user.admin? %>
<%= form.number_field :offline_votes, min: 1 %>
<% end %>
<%= javascript_include_tag "decidim/initiatives/scoped_type" %>