summaryrefslogtreecommitdiffstats
path: root/app/views/documents
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-01 11:26:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-01 11:26:56 +0000
commitff65a5b22a5441476320a461c986a64b84ee025a (patch)
treef3e49f970a7a637d0c28db997cbd00e47b2dbb0d /app/views/documents
parent7a03cf92ba62a2aa4c299741bcb8401eefda1c9b (diff)
downloadredmine-ff65a5b22a5441476320a461c986a64b84ee025a.tar.gz
redmine-ff65a5b22a5441476320a461c986a64b84ee025a.zip
added multiple file upload for documents and files modules
git-svn-id: http://redmine.rubyforge.org/svn/trunk@130 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/documents')
-rw-r--r--app/views/documents/show.rhtml7
1 files changed, 4 insertions, 3 deletions
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) %>
- <label><%=l(:label_attachment_new)%></label>&nbsp;&nbsp;
- <%= file_field 'attachment', 'file' %>
+ <%= start_form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") %>
+ <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>&nbsp;
+ <%= link_to_function image_tag('add'), "addFileField()" %></label>
+ <%= file_field_tag 'attachments[]', :size => 30 %></p>
<%= submit_tag l(:button_add) %>
<%= end_form_tag %>
<% end %>