<% 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 %>
<% @site_in_use_locales.each_with_index do |locale, i| %> <%= locale %>"> <%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, :class => "input-medium", placeholder: t(:alternative), :value => (form_file.title_translations[locale] rescue nil) %> <% end %> <% end %> <% @site_in_use_locales.each_with_index do |locale, i| %> <%= locale %>"> <%= f.fields_for :description_translations do |f| %> <%= f.text_field locale, :class => "input-medium", placeholder: t(:description), :value => (form_file.description_translations[locale] rescue nil) %> <% end %> <% end %> <%= hidden_field_tag "video_program[video_program_files_attributes][#{( form_file.new_record? ? 'new_video_program_files' : "#{i}" )}][choose_lang][]", '' %> <% if form_file.new_record? %> <% else %> <%= f.hidden_field :id %> <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %> <% end %>