This commit is contained in:
Nicolas VARROT 2016-09-29 12:21:35 +02:00
parent ada888f463
commit 81bbd7d5ac
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ class AdminMailer < ApplicationMailer
# a faire
def customer_upload_document(admin, document, customer)
@document = document
@customer = customer
mail to: admin.email, subject: "Un client a renvoyé un document"
end

View File

@ -9,7 +9,7 @@
%td{style:"text-align:center"}
-if !document.not_available?
-if !document.returned_document?
= form_tag public_download_document_path(document.download_token), name: :returned_document, method: :post, multipart: true do
= form_tag upload_returned_public_accepted_offer_document_path(@accepted_offer, document), name: :returned_document, method: :post, multipart: true do
%span.btn.btn-default.btn-file
="Ouvrir (PDF)"
= file_field_tag :returned_document