<% if form_qa_file.new_record? %>
<% else %>
<% if form_qa_file.file.blank? %> <%= t(:no_file) %> <% else %> <%= link_to content_tag(:i) + form_qa_file.file_identifier, form_qa_file.file.url, {:class => 'file-link file-type', :target => '_blank', :title => form_qa_file.file_identifier} %> <% end %> <% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %> <%= locale.to_s %>"> <%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, :class => "input-medium", placeholder: t(:alternative), :value => (form_qa_file.title_translations[locale] rescue nil) %> <% end %> <% end %> <% @site_in_use_locales.each_with_index do |locale, i| %> <%= locale.to_s %>"> <%= f.fields_for :description_translations do |f| %> <%= f.text_field locale, :class => "input-medium", placeholder: t(:description), :value => (form_qa_file.description_translations[locale] rescue nil) %> <% end %> <% end %> <%= hidden_field_tag "qa[qa_files_attributes][#{( form_qa_file.new_record? ? 'new_bulletin_files' : "#{i}" )}][choose_lang][]", '' %> <% if form_qa_file.new_record? %> <% else %> <%= f.hidden_field :id %> <%= f.hidden_field :_destroy, :value => nil, :class => 'should_destroy' %> <% end %>