mirror of
https://github.com/redmine/redmine.git
synced 2026-01-21 06:53:08 +01:00
Fixes missing icon in attachments upload form in case of validation errors (#42920).
Patch by Karel Pičman (user:picman). git-svn-id: https://svn.redmine.org/redmine/trunk@23848 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
<% if saved_attachments.present? %>
|
||||
<% saved_attachments.each_with_index do |attachment, i| %>
|
||||
<span id="attachments_p<%= i %>">
|
||||
<%= sprite_icon('attachment', icon_only: true, size: 16, css_class: 'svg-attachment') %>
|
||||
<%= text_field_tag("#{attachment_param}[p#{i}][filename]", attachment.filename, :class => 'filename') %>
|
||||
<% if attachment.container_id.present? %>
|
||||
<%= link_to sprite_icon('del', l(:button_delete), icon_only: true), "#", :onclick => "$(this).closest('.attachments_form').find('.add_attachment').show(); $(this).parent().remove(); return false;", :class => 'icon-only icon-del' %>
|
||||
|
||||
Reference in New Issue
Block a user