<% @question_no = @question_no + 1 if f.object.id && f.object.question_type_id != :label -%> <%= div_for(f.object) do %>
<% if f.object.dependent? -%> <%= list_dependencies(f.object) if f.object.dependency %>.
<% end -%> <% if !@survey_locked && (f.object.modifiable?) -%> <% if f.object.dependent? -%> <% else -%> <% end %> <% end %>

<%= render "question_name_and_number", question_type: f.object.question_type, text: f.object.text %>
<%= render "question_field", f: f %>
<% if !@survey_locked && (f.object.modifiable?) -%>
<% if session[:cut_question] -%> <% end %>
<% end %> <% end %>