diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-19 08:08:09 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-19 08:08:09 +0000 |
commit | 65a91d13a0ef8a08f2cb118ea0bda716910db6a9 (patch) | |
tree | 628dc7bd0ce1f32bb83b13b900b86b13ff64076f /app | |
parent | 3c2c5fbc50d85f1275fff701f752be330c2da58a (diff) | |
download | redmine-65a91d13a0ef8a08f2cb118ea0bda716910db6a9.tar.gz redmine-65a91d13a0ef8a08f2cb118ea0bda716910db6a9.zip |
Fix file drop feature not working in @documents#new@ (#36686).
git-svn-id: http://svn.redmine.org/redmine/trunk@21466 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/documents/_form.html.erb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/views/documents/_form.html.erb b/app/views/documents/_form.html.erb index ba783deb7..139afe24a 100644 --- a/app/views/documents/_form.html.erb +++ b/app/views/documents/_form.html.erb @@ -11,12 +11,10 @@ <% @document.custom_field_values.each do |value| %> <p><%= custom_field_tag_with_label :document, value %></p> <% end %> + + <% if @document.new_record? %> + <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p> + <% end %> </div> <%= wikitoolbar_for 'document_description' %> - -<% if @document.new_record? %> - <div class="box tabular"> - <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p> - </div> -<% end %> |