# Produces:
# -----------------------------
# Generates a set of Options for each question using an appropriate format
# (see sections.yml, questions.yml and question_formats.yml)
#
# [template]_phase_[1..2]_version_[1..2]_section_[1..2]_question_[check_box, etc]_option_[1..2]
#
# Import sections.yml so that we can dynamically generate sections
<% sections = YAML::load(ERB.new(File.read('./test/fixtures/sections.yml')).result) %>
<% sections.each do |lbl, hash| %>
<% 2.times.each do |n| %>
<%= lbl %>_question_radio_button_option_<%= n %>:
question: test_project_1_plan_1_answer_for_radio_button_question
text: <%= (n == 1 ? 'A' : 'B') %>
number: <%= n %>
is_default: <%= (n == 1 ? true : false) %>
<%= lbl %>_question_check_box_option_<%= n %>:
question: test_project_1_plan_1_answer_for_check_box_question
text: <%= (n == 1 ? 'A' : 'B') %>
number: <%= n %>
is_default: <%= (n == 1 ? true : false) %>
<%= lbl %>_question_dropdown_option_<%= n %>:
question: test_project_1_plan_1_answer_for_dropdown_question
text: <%= (n == 1 ? 'A' : 'B') %>
number: <%= n %>
is_default: <%= (n == 1 ? true : false) %>
<%= lbl %>_question_multi_select_box_option_<%= n %>:
question: test_project_1_plan_1_answer_for_multi_select_box_question
text: <%= (n == 1 ? 'A' : 'B') %>
number: <%= n %>
is_default: <%= (n == 1 ? true : false) %>
<% end %>
<% end %>