fixes #39 making sure question attachements show up everywhere

This commit is contained in:
Mark Moser
2016-08-04 20:12:14 -05:00
parent fc784ffcb1
commit 5cac3af354
3 changed files with 43 additions and 0 deletions

View File

@ -22,6 +22,10 @@
</div>
<div class="answer-container">
<% if question.attachment.present? %>
<%= image_tag question.attachment %>
<% end %>
<fieldset disabled class="answer-block">
<%= hidden_field_tag 'answer[question_id]', question.question_id %>
<%= render partial: question.input_type, locals: {question: question, form: form} %>

View File

@ -16,6 +16,9 @@
</div>
<div class="answer-container">
<% if question.attachment.present? %>
<%= image_tag question.attachment %>
<% end %>
<fieldset disabled class="answer-block">
<%= hidden_field_tag 'answer[question_id]', question.question_id %>
<%= render partial: "candidate/#{question.input_type}", locals: {question: question, form: form} %>