<% if form_file.new_record? %>
<% else %>
<% if form_file.file.blank? %> <%= t(:no_file) %> <% else %> <%= link_to content_tag(:i) + form_file.file_identifier, form_file.file.url, {:class => 'file-link file-type', :target => '_blank', :title => form_file.file_identifier} %> <% end %> <% end %>
<%= f.text_field :title, :class => "input-medium", placeholder: t(:title) %> <% if form_file.new_record? %> <% else %> <%= f.hidden_field :id %> <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %> <% end %>