<%= @survey.title %> <%= t('survey.jump') %>

<%= form_for @survey, :url => admin_survey_path(@survey), :html => {:class => 'clear'} do |f| %>
<%= f.label :jump_mode, t('survey.jump_mode')%> <%= f.check_box :jump_mode %>
<% @questions.each_with_index do |question, i| %> <%= f.fields_for :survey_questions, question do |f| %>
" class="survey_question_item clear">

<%= question.title %>

<% if question.jumpable? %> <% if question.can_set_jump? %>
    <% question.survey_question_options.each_with_index do |option, i| %> <%= f.fields_for :survey_question_options, option do |f| %>
  1. <%= f.label :survey_question_options, option.name %> <%= f.select :jump_to, @jump_to_options %>
  2. <% end %> <% end %>
<% else %> <%= t('survey.right_type_cant_jump') %> <% end %> <% else %> <%= t('survey.wrong_type_cant_jump') %> <% end %>
<% end %> <% end %>
<%= hidden_field_tag 'page', params[:page] if !params[:page].blank? %> <%= f.submit t('submit'), :class=>'btn btn-primary' %> <%= link_to t('cancel'), get_go_back, :class=>"btn" %>
<% end %>