<%= back_link_to %>

<%= t("admin.questions.show.answers.documents_list") %>

<%= form_for(Poll::Question::Answer.new, url: admin_answer_path(@answer), method: :put) do |f| %> <%= render "shared/errors", resource: @answer %>
<%= render "documents/nested_documents", documentable: @answer, f: f %>
<%= f.submit(class: "button expanded", value: t("shared.save")) %>
<% end %> <% if @answer.documents.present? %> <% @answer.documents.each do |document| %> <% end %>
<%= t("admin.questions.show.answers.document_title") %> <%= t("admin.questions.show.answers.document_actions") %>
<%= link_to document.title, document.attachment.url %> <%= link_to t("documents.buttons.download_document"), document.attachment.url, target: "_blank", rel: "nofollow", class: "button hollow" %> <%= link_to t("admin.shared.delete"), document_path(document), method: :delete, class: "button hollow alert", data: { confirm: t("admin.actions.confirm") } %>
<% end %>