diff options
Diffstat (limited to 'app/views/documents/show.rhtml')
-rw-r--r-- | app/views/documents/show.rhtml | 7 |
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>
- <%= 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)%>
+ <%= link_to_function image_tag('add'), "addFileField()" %></label>
+ <%= file_field_tag 'attachments[]', :size => 30 %></p>
<%= submit_tag l(:button_add) %>
<%= end_form_tag %>
<% end %>
|