<% index ||= 0 %>
<% if index.is_a? String %> <% question_label = ts("Question #{index}") %> <% else %> <% question_label = ts("Question #{(index + 1)}") %> <% end %> <%= question_label %>

<%= question_label %>

<%= form.label :question, ts("Question") + "*" %>
<%= form.text_field :question %> <%= live_validation_for_field(field_id(form, "question").to_sym, failureMessage: ts("Please enter a question.")) %>
<%= form.label :anchor, ts("Anchor name") + "*" %>
<%= form.text_field :anchor, disabled: (I18n.locale != I18n.default_locale) %> <%= live_validation_for_field(field_id(form, "anchor").to_sym, failureMessage: ts("Please enter an anchor name.")) %>
<%= form.label :content, ts("Answer") + "*" %>
<%= form.text_area :content %> <%= live_validation_for_field(field_id(form, "content").to_sym, minimum_length: ArchiveConfig.CONTENT_MIN, failureMessage: ts("Please enter an answer that is at least %{min} characters long.", min: ArchiveConfig.CONTENT_MIN.to_s)) %>
<%= form.label :screencast, ts("Screencast URL") %>
<%= form.text_field :screencast %>
<% if Globalize.locale.to_s != "en" %>
<%= form.check_box :is_translated %>
<%= form.label :is_translated, ts("Question translated") %>
<% end %>
<% if Globalize.locale.to_s == "en" %> <% # TODO: DELETE A QUESTION %>

<% removetext = ts("Remove Question") %> <%= link_to_remove_section(removetext, form) %> <% # TODO: DELETE QUESTION WITHOUT JAVASCRIPT %>

<% end %>