simple question attachments
This commit is contained in:
@ -9,6 +9,10 @@
|
||||
<main class="answer-sec <%= @question.input_type %>-type questions_tpl" data-qid="<%= @question.question_id %>">
|
||||
<h2 class="question-text"><%= @question.question %></h2>
|
||||
|
||||
<% if @question.attachment.present? %>
|
||||
<%= image_tag @question.attachment %>
|
||||
<% end %>
|
||||
|
||||
<div class="content-well">
|
||||
<%= hidden_field_tag 'answer[question_id]', @question.question_id %>
|
||||
<%= hidden_field_tag 'answer[answer_id]', @question.answer_id %>
|
||||
|
Reference in New Issue
Block a user