Bug fix
This commit is contained in:
parent
ada888f463
commit
81bbd7d5ac
@ -48,6 +48,7 @@ class AdminMailer < ApplicationMailer
|
|||||||
# a faire
|
# a faire
|
||||||
def customer_upload_document(admin, document, customer)
|
def customer_upload_document(admin, document, customer)
|
||||||
@document = document
|
@document = document
|
||||||
|
@customer = customer
|
||||||
mail to: admin.email, subject: "Un client a renvoyé un document"
|
mail to: admin.email, subject: "Un client a renvoyé un document"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
%td{style:"text-align:center"}
|
%td{style:"text-align:center"}
|
||||||
-if !document.not_available?
|
-if !document.not_available?
|
||||||
-if !document.returned_document?
|
-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
|
%span.btn.btn-default.btn-file
|
||||||
="Ouvrir (PDF)"
|
="Ouvrir (PDF)"
|
||||||
= file_field_tag :returned_document
|
= file_field_tag :returned_document
|
||||||
|
Loading…
x
Reference in New Issue
Block a user