diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-09 17:59:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-09 17:59:31 +0000 |
commit | 1506d3ddab555f3efd7cbd86c4512ea1873cb0a7 (patch) | |
tree | 25e32b13a6b7fe792428c20ab6e0cf4d16187989 | |
parent | 5cb64fff914c7b15436a971e41ada2543f48082b (diff) | |
download | redmine-1506d3ddab555f3efd7cbd86c4512ea1873cb0a7.tar.gz redmine-1506d3ddab555f3efd7cbd86c4512ea1873cb0a7.zip |
Form to add an attachment on document view is now togglable.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@437 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/documents/show.rhtml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index 730cbbb11..7a72e2bd2 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -28,7 +28,8 @@ <% if authorize_for('documents', 'add_attachment') %> - <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") do %> +<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> |