summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2025-06-29 06:52:00 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2025-06-29 06:52:00 +0000
commitf291d3831400a1ffe6d7ba2e8665556247374807 (patch)
tree7bb206575182687d1c6a60fc9565b7e4604516ea
parent8cc3e1a5acb691af47b4365b6dda9deadc7b6325 (diff)
downloadredmine-master.tar.gz
redmine-master.zip
Fixes missing icon in attachments upload form in case of validation errors (#42920).HEADmaster
Patch by Karel Pičman (user:picman). git-svn-id: https://svn.redmine.org/redmine/trunk@23848 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/attachments/_form.html.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/attachments/_form.html.erb b/app/views/attachments/_form.html.erb
index c8bb84123..e5b10fb55 100644
--- a/app/views/attachments/_form.html.erb
+++ b/app/views/attachments/_form.html.erb
@@ -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' %>