<%= back_link_to admin_question_path(@answer.question) %>

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

<%= form_for(Poll::Question::Answer.new, url: admin_answer_documents_path(answer)) do |f| %> <%= render "shared/errors", resource: answer %>
<%= render "documents/nested_documents", 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 %> <%= render Admin::TableActionsComponent.new(document, actions: [:destroy], destroy_path: document_path(document) ) do |actions| %> <%= actions.action(:download, text: t("documents.buttons.download_document"), path: document.attachment, target: "_blank", rel: "nofollow") %> <% end %>
<% end %>