<%= form_for(@question, url: form_url) do |f| %> <%= render 'shared/errors', resource: @question %> <%= f.hidden_field :proposal_id %>
<%= f.select :poll_id, options_for_select(Poll.pluck(:name, :id)), prompt: t("admin.questions.index.select_poll"), label: t("admin.questions.new.poll_label") %>
<%= f.text_field :title, maxlength: Poll::Question.title_max_length %> <%= f.label :valid_answers %>

<%= t("admin.questions.new.valid_answers_note") %>

<%= f.text_field :valid_answers, label: false %>
<%= f.cktext_area :description, maxlength: Poll::Question.description_max_length, ckeditor: { language: I18n.locale } %>
<%= f.submit(class: "button expanded", value: t("shared.save")) %>
<% end %>