<%= t ".title" %>

<%= 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: true, "data-scope-selector": "initiative_decidim_scope_id", "data-scope-id": current_initiative.scope.id, "data-scope-search-url": decidim_initiatives.initiative_type_scopes_search_url } %>
<%= form.select :decidim_scope_id, [], {}, { disabled: true } %>
<% if current_initiative.published? && current_user.admin? %>
<%= form.date_field :signature_start_time %>
<%= form.date_field :signature_end_time %>
<% end %>
<%= form.text_field :hashtag, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative) %>
<%= form.hidden_field :signature_type %> <%= form.select :signature_type, signature_type_options, {}, { disabled: true } %>
<% if current_initiative.accepts_offline_votes? && current_user.admin? %>
<%= form.number_field :offline_votes, min: 1 %>
<% end %> <% if current_initiative.accepted? %>
<%= form.translated :editor, :answer %>
<%= form.text_field :answer_url %>
<% end %>
<%= javascript_include_tag "decidim/initiatives/scoped_type" %>