2016-08-18 18:22:57 -05:00
|
|
|
<%
|
|
|
|
content_for :section_title, "#{@quiz.name}"
|
|
|
|
%>
|
2016-08-18 15:35:17 -05:00
|
|
|
|
2016-08-19 16:02:18 -05:00
|
|
|
<main class="admin_tpl">
|
2016-08-18 18:22:57 -05:00
|
|
|
<p><%= @quiz.name %></p>
|
2016-08-18 15:35:17 -05:00
|
|
|
<p><%= @quiz.dept %></p>
|
|
|
|
<p><%= @quiz.unit %></p>
|
2016-08-18 18:22:57 -05:00
|
|
|
<%= link_to('Edit', admin_edit_quiz_path(@quiz.to_i), { class: 'btn' }) %>
|
2016-08-18 15:35:17 -05:00
|
|
|
</main>
|
2016-08-19 16:02:18 -05:00
|
|
|
|
|
|
|
<main class="summary_tpl">
|
|
|
|
<%= render partial: 'admin/question/table_list', locals: { questions: @quiz.questions, disable: true } %>
|
|
|
|
<%= link_to('New Question', admin_new_question_path, { class: 'btn' }) %>
|
|
|
|
</main>
|