diff --git a/app/views/documents/_nested_form_fields.html.erb b/app/views/documents/_nested_form_fields.html.erb index c2ec64829..10a3f7d11 100644 --- a/app/views/documents/_nested_form_fields.html.erb +++ b/app/views/documents/_nested_form_fields.html.erb @@ -1,8 +1,8 @@ -<%= f.label :documents %> +<%= form.label :documents %>

Aquí puedes añadir hasta 3 doucmentos en formato PDF

<% documents.each_with_index do |document, index| %>
- <%= f.fields_for :documents, document do |document_fields| %> + <%= form.fields_for :documents, document do |document_fields| %> <%= document_fields.text_field :title %> <%= document_fields.hidden_field :cached_attachment, value: document.attachment.path %> <%= document_fields.file_field :attachment,