<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "lib/main-list" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/bootstrap-fileupload" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/modal-preview" %> <%= javascript_include_tag "lib/file-type" %> <%= javascript_include_tag "validator" %> <% end %>
<%= render partial: 'module_tag', locals: {f: f} %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
"> <%= render partial: 'form_text_locale', locals: {f: f, node: :title, locale: locale, style: nil} %>
<% end %>
<%= f.datetime_picker :pub_date, no_label: true, new_record: @publication.new_record?, data: {} %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
"> <%= render partial: 'form_text_locale', locals: {f: f, node: :author, locale: locale, style: nil} %> <%= render partial: 'form_text_area', locals: {f: f, node: :pub_information, locale: locale} %>
<% end %>
<%= f.fields_for :full_files, (f.object.full_files[0] || f.object.full_files.new) do |f| %> <%= render :partial => 'form_file', :object => f.object, :locals => {:f => f, :i => 0, accept: 'application/pdf'} %> <% end %>
<% if !f.object.publication_links.blank? %>
<% f.object.publication_links.each_with_index do |publication_link, i| %> <%= f.fields_for :publication_links, publication_link do |f| %> <%= render :partial => 'form_link', :object => publication_link, :locals => {:f => f, :i => i} %> <% end %> <% end %>
<% end %>

<%= hidden_field_tag 'publication_link_field_count', f.object.publication_links.count %> <%= t(:add) %>

<%= f.submit t('submit'), class: 'btn btn-primary' %>
<% content_for :page_specific_css do %> <% end %> <% content_for :page_specific_javascript do %> <% end %>