" class='list_item'>
<%= f.file_field :file %>
<%= form_file.file.file ? ( link_to t(:view), form_file.file.url, {:class => 'btn', :target => '_blank', :title => t(:view)} ) : '' %>
|
<%= f.text_field :title %>
|
<% if form_file.new_record? %>
<% else %>
<%= f.hidden_field :id %>
<%= f.hidden_field :should_destroy, :value => nil, :class => 'should_destroy' %>
<% end %>
|