<%= render "shared/globalize_locales", resource: @option %>

<%= translatable_form_for(@option, url: form_url) do |f| %>

  <%= render "shared/errors", resource: @option %>

  <%= f.hidden_field :given_order,
                     value: @option.persisted? ? @option.given_order : @option.class.last_position(@option.question_id || @question.id) + 1 %>

  <div class="row">
    <%= f.translatable_fields do |translations_form| %>
      <div class="column end">
        <%= translations_form.text_field :title %>
      </div>
      <div class="column">
        <%= translations_form.text_area :description, maxlength: Poll::Question.description_max_length, class: "html-area" %>
      </div>
    <% end %>
  </div>

  <div class="row">
    <div class="small-12 medium-4 large-2 margin-top column">
      <%= f.submit(class: "button success expanded", value: t("shared.save")) %>
    </div>
  </div>

<% end %>
