<% # encoding: utf-8 %> <% 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/file-type" %> <%= javascript_include_tag "lib/module-area" %> <% end %>
<%= select_category(f, @module_app) %>
<%= f.text_field :size , class: "input-block-level",value: (@digital_archive.size rescue nil) %>
<%= f.text_field :item_id ,class: "input-block-level",value: (@digital_archive.item_id rescue nil) %>
<%= f.date_field :item_date , class: "input-block-level",value: (@digital_archive.item_date rescue nil) %>
<%= select_tags(f, @module_app) %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t(:title), value: (@digital_archive.title_translations[locale] rescue nil)%> <% end %>
<%= f.fields_for :location_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t("digital_archive.location"),value: (@digital_archive.location_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :character_translations do |f| %> <%= f.text_field locale, class: "input-block-level", placeholder: t("digital_archive.character"),value: (@digital_archive.character_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :department_translations do |f| %> <%= f.text_field locale, class: "input-block-level",placeholder: t("digital_archive.department"),value: (@digital_archive.department_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :description_translations do |f| %> <%= f.text_field locale, class: "input-block-level",placeholder: t("digital_archive.description"),value: (@digital_archive.description_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :detail_description_translations do |f| %> <%= f.text_area locale, class: "input-block-level",value: (@digital_archive.detail_description_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :material_translations do |f| %> <%= f.text_field locale, class: "input-block-level",placeholder: t("digital_archive.material"),value: (@digital_archive.material_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :item_from_translations do |f| %> <%= f.text_field locale, class: "input-block-level",placeholder: t("digital_archive.item_from"),value: (@digital_archive.item_from_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :item_status_translations do |f| %> <%= f.text_field locale, class: "input-block-level",placeholder: t("digital_archive.item_status"),value: (@digital_archive.item_status_translations[locale] rescue nil) %> <% end %>
<%= f.fields_for :album_content_translations do |f| %> <%= f.text_field locale, class: "input-block-level",placeholder: t("digital_archive.album_content"),value: (@digital_archive.album_content_translations[locale] rescue nil) %> <% end %>
<% end %>
<% if @digital_archive && !@digital_archive.digital_content_archive_files.blank? %>
<% @digital_archive.digital_content_archive_files.each_with_index do |digital_content_archive_file, i| %> <%= f.fields_for :digital_content_archive_files, digital_content_archive_file do |f| %> <%= render :partial => 'form_file', :object => digital_content_archive_file, :locals => {:f => f, :i => i} %> <% end %> <% end %>
<% end %>

<%= hidden_field_tag 'digital_content_archive_file_field_count', (@digital_archive.digital_content_archive_files.count rescue 0)%> <%= t(:add) %>

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