skill-assessment-app/app/views/admin/quiz/view.html.erb
2016-08-24 12:17:00 -05:00

12 lines
384 B
Plaintext

<%
content_for :section_title, "#{@quiz.name}"
%>
<p><%= @quiz.name %></p>
<p><%= @quiz.dept %></p>
<p><%= @quiz.unit %></p>
<%= link_to('Edit', admin_edit_quiz_path(@quiz.to_i), { class: 'btn' }) %>
<%= render partial: 'admin/question/table_list', locals: { questions: @quiz.questions, disable: true } %>
<%= link_to('New Question', admin_new_question_path, { class: 'btn' }) %>