Accept nested attributes for documents on proposals. Adapt documentable js file to allow many input files at the same page.
This commit is contained in:
@@ -22,10 +22,8 @@
|
||||
label: false,
|
||||
class: 'document_ajax_attachment show-for-sr',
|
||||
data: {
|
||||
url: upload_documents_url(
|
||||
documentable_type: @document.documentable_type,
|
||||
documentable_id: @document.documentable_id
|
||||
),
|
||||
url: upload_documents_url(documentable_type: @document.documentable_type, documentable_id: @document.documentable_id),
|
||||
chached_attachment_input_field: "document_cached_attachment",
|
||||
multiple: false
|
||||
} %>
|
||||
<%= f.label :attachment, t("documents.form.attachment_label"), class: 'button hollow' %>
|
||||
|
||||
Reference in New Issue
Block a user