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

<% if @question.attachment.present? %>

<%= image_tag @question.attachment %>

<% end %> <%= 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: 'btn' }) %> <%= link_to('View Quiz', admin_quiz_path(@question.quiz_id), { class: 'btn' }) %>