<% if Globalize.locale.to_s == "en" %> <%= form_tag({}, {:method => :get}) do %>
<%= ts("Add Questions") %>

<%= ts("Add Questions") %>

<%= ts("Since you don't have JavaScript turned on, please tell us how many questions you want this category to have. (This must be greater than the current number of questions, which is %{num}.) ", num: @archive_faq.questions.count) %>

<%= label_tag "num_questions", ts("Questions:") %> <%= text_field_tag "num_questions", params["num_questions"], class: "number" %>

<%= submit_tag ts("Update Form") %>

<% end %> <% end %> <%= form_for(@archive_faq, html: { class: "create faq" }) do |form| %> <%= error_messages_for @archive_faq %>

<%= ts("* Required information") %>

<%= ts("Set Preferences") %>

<%= ts("Set Preferences") %>

<%= form.label :title, ts("Category name") + "*" %>
<%= form.text_field :title %> <%= live_validation_for_field(field_id(form, "title").to_sym, failureMessage: ts("Please enter a category name.")) %>
<% # TODO: If you have the form set up to create 3 questions and you only fill in 2, you get an error instead of the totally empty section being ignored. This is the same with requests/offers in challenge signups. %>
<%= ts("Questions") %>

<%= ts("Questions") %>

<% form.object.questions.each_with_index do |question, index| %> <%= form.fields_for :questions, question do |question_form| %> <%= render "question_answer_fields", form: question_form, index: index %> <% end %> <% end %> <% if Globalize.locale.to_s == "en" %>

<%= link_to_add_section("Add Question", form, :questions, "question_answer_fields") %>

<% end %>
<%= ts("Submit") %>

<%= ts("Submit") %>

<%= submit_tag ts("Post"), name: "post_button" %>

<% end %>