% element_id = attachment_field.id; base_element = "#element_#{element_id}" %> <% if @presenter %> <% answer = attachment_field.responses(@answer_sheet).first %> <% if @answer_sheet&.frozen? && !@answer_sheet&.reference? %> <% if answer %> Current File: <%= link_to(answer.attachment.filename, url_for(answer.attachment)) %> <%= link_to(image_tag("fe/icons/minus-button.png"), delete_file_fe_answer_sheet_page_path(@presenter.active_answer_sheet, @page, question_id: element_id, answer_sheet_type: @answer_sheet.class.name), method: :delete, remote: true) %> <% end %> <% else %>