simple question attachments

This commit is contained in:
Mark Moser committed 2016-08-03 08:55:30 -05:00
1 parent a3eab2b27a
commit f4abe5e281
7 files changed
+28 -5

No files matched your search

+4
View File
@@ -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 %>