skill-assessment-app/app/views/admin/question/index.html.erb

12 lines
413 B
Plaintext
Raw Normal View History

2016-08-19 16:02:18 -05:00
<%
content_for :section_title, "Questions"
2016-11-22 16:59:54 -06:00
content_for :title, "Questions - Skills Assessment Admin"
2016-08-19 16:02:18 -05:00
%>
2016-08-24 12:17:00 -05:00
<% quizzes = @questions.group_by{ |q| q.quiz.name } %>
<% quizzes.each do |quiz, questions| %>
<h1><%= quiz %></h1>
<%= render partial: 'admin/question/table_list', locals: { questions: questions } %>
2017-03-20 10:57:50 -05:00
<%= link_to('Edit Quiz', admin_quiz_path(questions.first.quiz.to_i), { class: "" }) %>
2016-08-24 12:17:00 -05:00
<% end %>