2015-11-17 15:18:07 +08:00
|
|
|
|
2015-11-17 18:22:31 +08:00
|
|
|
<% exercise.exercise_questions.each do |poll_question|%>
|
2015-11-17 15:18:07 +08:00
|
|
|
<div id="poll_questions_<%= poll_question.id%>">
|
|
|
|
<!--<div id="show_poll_questions_<%= poll_question.id %>">
|
|
|
|
<%# if poll_question.question_type == 1%>
|
|
|
|
<%#= render :partial => 'show_MC', :locals => {:poll_question => poll_question} %>
|
|
|
|
<%# elsif poll_question.question_type == 2%>
|
|
|
|
<%#= render :partial => 'show_MCQ', :locals => {:poll_question => poll_question} %>
|
|
|
|
<%# elsif poll_question.question_type == 3%>
|
|
|
|
<%#= render :partial => 'show_single', :locals => {:poll_question => poll_question} %>
|
|
|
|
<%# end%>
|
|
|
|
</div>-->
|
|
|
|
<div id="edit_poll_questions_<%= poll_question.id %>" style="display: none;">
|
|
|
|
<% if poll_question.question_type == 1%>
|
|
|
|
<%= render :partial => 'edit_MC', :locals => {:poll_question => poll_question} %>
|
|
|
|
<% elsif poll_question.question_type == 2%>
|
|
|
|
<%= render :partial => 'edit_MCQ', :locals => {:poll_question => poll_question} %>
|
|
|
|
<% elsif poll_question.question_type == 3%>
|
|
|
|
<%= render :partial => 'edit_single', :locals => {:poll_question => poll_question} %>
|
|
|
|
<% end%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|