From ff65a5b22a5441476320a461c986a64b84ee025a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 1 Jan 2007 11:26:56 +0000 Subject: added multiple file upload for documents and files modules git-svn-id: http://redmine.rubyforge.org/svn/trunk@130 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/documents/show.rhtml | 7 ++++--- app/views/projects/add_document.rhtml | 5 +++-- app/views/projects/add_file.rhtml | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'app/views') diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index 385b25179..ace093dc5 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -28,9 +28,10 @@ <% if authorize_for('documents', 'add_attachment') %> - <%= start_form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true) %> -    - <%= file_field 'attachment', 'file' %> + <%= start_form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") %> +

+ <%= file_field_tag 'attachments[]', :size => 30 %>

<%= submit_tag l(:button_add) %> <%= end_form_tag %> <% end %> diff --git a/app/views/projects/add_document.rhtml b/app/views/projects/add_document.rhtml index 88572f409..e788a7bc7 100644 --- a/app/views/projects/add_document.rhtml +++ b/app/views/projects/add_document.rhtml @@ -4,8 +4,9 @@ <%= render :partial => 'documents/form' %>
-

-<%= file_field 'attachment', 'file' %>

+

+<%= file_field_tag 'attachments[]', :size => 30 %>

<%= submit_tag l(:button_create) %> diff --git a/app/views/projects/add_file.rhtml b/app/views/projects/add_file.rhtml index cb478cb16..41c208431 100644 --- a/app/views/projects/add_file.rhtml +++ b/app/views/projects/add_file.rhtml @@ -7,8 +7,9 @@

<%= select_tag "version_id", options_from_collection_for_select(@versions, "id", "name") %>

-

-<%= file_field 'attachment', 'file' %>

+

+<%= file_field_tag 'attachments[]', :size => 30 %>

<%= submit_tag l(:button_add) %> <%= end_form_tag %> \ No newline at end of file -- cgit v1.2.3