@@ -28,7 +28,8 | |||||
28 |
|
28 | |||
29 |
|
29 | |||
30 | <% if authorize_for('documents', 'add_attachment') %> |
|
30 | <% if authorize_for('documents', 'add_attachment') %> | |
31 | <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") do %> |
|
31 | <p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p> | |
|
32 | <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %> | |||
32 | <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> |
|
33 | <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> | |
33 | <%= image_to_function "add.png", "addFileField();return false" %></label> |
|
34 | <%= image_to_function "add.png", "addFileField();return false" %></label> | |
34 | <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> |
|
35 | <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> |
General Comments 0
You need to be logged in to leave comments.
Login now