<%= form.text_field :label %> <% if @file.new_record? %> <%= form.file_field :file, :multiple => true %> <% else %> <%= form.simple_field 'File', nil do %> <%= link_to @file.file.url, @file.file.url, :target => '_blank' %> <% end %> <% end %> <%= form.text_area :description %> <%= render :partial => 'cms_admin/categories/form', :object => form %> <%= form.simple_field nil, nil, :class => 'submit_element' do %> <%= form.submit t(@file.new_record?? '.create' : '.update'), :disable_builder => true %> <% end %>