use helper for attachments list

pull/6827/head
Jens Ulferts 6 years ago
parent 4456165902
commit 1f8109e799
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      app/views/cost_objects/_form.html.erb
  2. 2
      app/views/cost_objects/show.html.erb

@ -45,5 +45,5 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<div style="clear: both;"> </div>
<attachments data-resource="<%= resource.to_json %>" data-allow-uploading="true"></attachments>
<%= list_attachments(resource, true) %>

@ -90,7 +90,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</div>
<% resource = budget_attachment_representer(@cost_object) %>
<attachments data-resource="<%= resource.to_json %>" data-allow-uploading="false"></attachments>
<%= list_attachments(resource) %>
<%= render :partial => "show_variable_cost_object" %>
</div>

Loading…
Cancel
Save