]> source.dussan.org Git - redmine.git/commitdiff
Fix file drop feature not working in @documents#new@ (#36686).
authorMarius Balteanu <marius.balteanu@zitec.com>
Sat, 19 Mar 2022 08:08:09 +0000 (08:08 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sat, 19 Mar 2022 08:08:09 +0000 (08:08 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@21466 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/documents/_form.html.erb

index ba783deb7d4e5a29990b2272fdc34e1a6bc5da90..139afe24a499a7192a3d28659d4e4cb9a8617707 100644 (file)
   <% @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 %>