<%= 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 -%>
<% 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 %>
<%= f.label :creator_string -%>
<%= f.fields_for :creators do |creator_form| %> <%= render 'creator_fields', f: creator_form %> <% end %>
<%= f.label :contributor_string -%>
<%= f.fields_for :contributors do |contributor_form| %> <%= render 'contributor_fields', f: contributor_form %> <% end %>
<%= f.label :publisher_string -%>
<%= f.fields_for :publishers do |publisher_form| %> <%= render 'publisher_fields', f: publisher_form %> <% end %>
<%= 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 %>
<%= 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 -%>