% raise 'You must pass in an "answerer" to use this partial' unless defined?(answerer) %>
<% answerer.questions_by_section.each do |section, questions| %>
<% unless section.nil? %>
<%= section.name %>
<%= section.instructions %>
<% end %>
<% questions.each do |question| %>
- <%= question.name %>
<% answerer.answers_to(question).each do |answer| %>
-
<% if answer.is_a?(Answer) && answer.question.supports_uploads? && !answer.uploaded_file.blank? %>
<%= link_to asset_path(answer.uploaded_file_url), asset_path(answer.uploaded_file_url), target: "_blank" %>
<% else %>
<%= simple_format(answer.to_s) %>
<% end %>
<% end %>
<% end %>
<% end %>