diff options
Diffstat (limited to 'app/views/documents/show.rhtml')
-rw-r--r-- | app/views/documents/show.rhtml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index 9f530539f..74b8f343d 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -30,9 +30,7 @@ <% if authorize_for('documents', 'add_attachment') %> <p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p> <% form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %> - <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> - <%= image_to_function "add.png", "addFileField();return false" %></label> - <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> + <%= render :partial => 'attachments/form' %> <%= submit_tag l(:button_add) %> <% end %> <% end %> |