annotate .svn/pristine/ba/ba5d4789df17479bc2d584f1eb52a1d2b9bef079.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <% if defined?(container) && container && container.saved_attachments %>
Chris@1295 2 <% container.saved_attachments.each_with_index do |attachment, i| %>
Chris@1295 3 <span class="icon icon-attachment" style="display:block; line-height:1.5em;">
Chris@1295 4 <%= h(attachment.filename) %> (<%= number_to_human_size(attachment.filesize) %>)
Chris@1295 5 <%= hidden_field_tag "attachments[p#{i}][token]", "#{attachment.id}.#{attachment.digest}" %>
Chris@1295 6 </span>
Chris@1295 7 <% end %>
Chris@1295 8 <% end %>
Chris@1295 9 <span id="attachments_fields">
Chris@1295 10 <span>
Chris@1295 11 <%= file_field_tag 'attachments[1][file]', :id => nil, :class => 'file',
Chris@1295 12 :onchange => "checkFileSize(this, #{Setting.attachment_max_size.to_i.kilobytes}, '#{escape_javascript(l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)))}');" -%>
Chris@1295 13 <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :maxlength => 255, :placeholder => l(:label_optional_description) %>
Chris@1295 14 <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
Chris@1295 15 </span>
Chris@1295 16 </span>
Chris@1295 17 <span class="add_attachment"><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;', :class => 'add_attachment' %>
Chris@1295 18 (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</span>