diff --git a/app/views/admin/question/_form.html.erb b/app/views/admin/question/_form.html.erb index 20a6cdf..ea1275a 100644 --- a/app/views/admin/question/_form.html.erb +++ b/app/views/admin/question/_form.html.erb @@ -25,6 +25,15 @@ <%= form.text_area :question %> +
<%= image_tag @question.attachment %>
+ <% end %> +<%= @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 %>