%= render 'page/required_field' %>
<%= simple_form_for(@manifestation, html: { multipart: true }) do |f| -%>
<%= f.error_messages -%>
<% if @manifestation.original_manifestations.exists? or @parent %>
<%= f.label :parent_id -%>
<% if @parent %>
- <%= render 'show_parent_form', manifestation: @parent %>
<% end %>
<% @manifestation.original_manifestations.each do |manifestation| %>
<% if manifestation != @parent %>
- <%= render 'show_parent_form', manifestation: @manifestation %>
<% end %>
<% end %>
<% end %>
<%= f.label :original_title -%>
<%= f.text_field :original_title, class: 'resource_title' -%>
<%= f.label :title_transcription -%>
<%= f.text_field :title_transcription, class: 'resource_title' -%>
<%= f.label :title_alternative -%>
<%= f.text_field :title_alternative, class: 'resource_title' -%>
<%= f.label :statement_of_responsibility %>
<%= f.text_field :statement_of_responsibility, class: 'resource_title' -%>
<%= f.label :serial %>
<%= f.check_box :serial %>
<%= f.label :edition_string -%>
<%= f.text_field :edition_string %>
<%= f.label :edition -%>
<%= f.text_field :edition, class: 'resource_integer' -%>
<%= f.label :volume_number_string -%>
<%= f.text_field :volume_number_string %>
<%= f.label :volume_number -%>
<%= f.text_field :volume_number, class: 'resource_integer' -%>
<%= f.label :issue_number_string -%>
<%= f.text_field :issue_number_string %>
<%= f.label :issue_number -%>
<%= f.text_field :issue_number, class: 'resource_integer' -%>
<%= f.label :serial_number -%>
<%= f.text_field :serial_number, class: 'resource_integer' -%>
<%= f.label :series_statement_string -%>
<%= f.fields_for :series_statements do |series_form| %>
<%= render 'series_statement_fields', f: series_form %>
<% end %>
<%= link_to_add_association t('page.add_series_statement'), f, :series_statements %>
<%= f.label :publication_place -%>
<%= f.text_field :publication_place, class: 'resource_title' %>
<%= f.label :pub_date -%>
<%= f.text_field :pub_date, class: 'date_field', placeholder: "#{t('page.example')}: 2011, 2011-04-12"-%>
<%= f.label t('page.file') -%>
<%= f.file_field :attachment -%>
<%= f.label t('activerecord.models.content_type') -%>
<%= f.select(:content_type_id, @content_types.collect{|c| [c.display_name.localize, c.id]}) -%>
<%= f.label t('activerecord.models.carrier_type') -%>
<%= f.select(:carrier_type_id, @carrier_types.collect{|c| [c.display_name.localize, c.id]}) -%>
<%= f.label t('activerecord.models.frequency') -%>
<%= f.select(:frequency_id, @frequencies.collect{|frequency| [frequency.display_name.localize, frequency.id]}) -%>
<%= f.label t('activerecord.models.language') -%>
<%= f.select(:language_id, @languages.collect{|language| [language.display_name.localize, language.id]}) -%>
<%= f.label :identifier -%>
<%= f.fields_for :identifiers do |identifier_form| %>
<%= render 'identifier_fields', f: identifier_form %>
<% end %>
<%= link_to_add_association t('page.add'), f, :identifiers %>
<%= f.label :manifestation_identifier -%>
<%= f.text_field :manifestation_identifier, class: 'resource_identifier_body', style: 'ime-mode: disabled' -%>
<% if defined?(EnjuSubject) %>
<%= render 'manifestations/subject_form', f: f %>
<% end %>
<%= f.label :extent -%>
<%= f.text_field :extent, class: 'resource_subject' -%>
<%= f.label :start_page -%>
<%= f.text_field :start_page, class: 'resource_integer' -%>
<%= f.label :end_page -%>
<%= f.text_field :end_page, class: 'resource_integer' -%>
<%= f.label :dimensions -%>
<%= f.text_field :dimensions, class: 'resource_subject' -%>
<%= f.label :height -%>(cm)
<%= f.text_field :height, class: 'resource_integer' -%>
<%= f.label :width -%>(cm)
<%= f.text_field :width, class: 'resource_integer' -%>
<%= f.label :depth -%>(cm)
<%= f.text_field :depth, class: 'resource_integer' -%>
<%= f.label :price -%>
<%= f.text_field :price, class: 'resource_integer' -%>
<%= f.label :access_address -%>
<%= f.url_field :access_address, class: 'resource_url' -%>
<%= f.label t('role.required_role') -%>
<%= f.select(:required_role_id, @roles.collect{|r| [r.display_name.localize, r.id]}) -%>
<%= f.label :description -%>
<%= f.text_area :description, class: 'resource_textarea' -%>
<%= f.label :note -%>
<%= f.text_area :note, class: 'resource_textarea' -%>
<%= f.hidden_field :parent_id %>
<%= f.hidden_field :lock_version %>
<%= f.submit data: {disable_with: t('page.saving')} -%>
<%= javascript_tag("$(function(){$('#query').focus()})") %>
<%- end -%>