%= f.label "field_name", t('admin.' + field_name) %>
<% object.send(field_name).each do |t| %>
- >
<%= t.file_filename %>
<% if classes.include?('r_destroy') %>
<%= fields_for "design[" + field_name + "][]", t, :index => nil do |f| %>
<%= f.hidden_field :id %>
<%= f.hidden_field :file %>
<%= f.hidden_field :to_destroy %>
<% end %>
<%= t('Delete') %>
<% end %>
<% if classes.include?('r_editable') %>
<%= t('Edit') %>
<% end %>
<% end %>
<%= fields_for "design[" + field_name + "][]", object.send(field_name).build, :index => nil do |f| %>
<%= f.file_field :file, :class => "multi_files" %>
<% end %>