<% content_for :section_title, "Question for #{@question.quiz.name}" content_for :title, "Question - Skills Assessment Admin" %>

<%= @question.quiz.name %>

Category

<%= @question.category %>

Type

<%= @question.input_type %>

Sort

<%= @question.sort %>
<%= check_box_tag 'question_active', nil, @question.active?, {disabled: true} %> <%= label_tag 'question_active', 'Active' %>

Question

<%= @question.question %>
<%= image_tag @question.attachment if @question.attachment.present? %>
<%= fields_for @question do |fields| %> <%= render partial: "admin/question/#{@question.input_type}", locals: {question: @question, disable: true, fields: fields } %> <% end %> <%= link_to('Edit', admin_edit_question_path(@question.to_i), { class: "" }) %> <%= link_to('View Quiz', admin_quiz_path(@question.quiz_id), { class: "" }) %>