<%= render 'page/required_field' %> <%= simple_nested_form_for(@manifestation, :html => { :multipart => true }) do |f| -%> <%= f.error_messages -%>
<%= 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 :periodical %> <%= f.check_box :periodical %>
<%= f.label :creator_string -%>
<%= f.fields_for :creators do |creator_form| %> <%= creator_form.text_field :full_name %> <%= creator_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %> <% end %>

<%= f.link_to_add t('page.add'), :creators %>

<%= f.label :contributor_string -%>
<%= f.fields_for :contributors do |contributor_form| %> <%= contributor_form.text_field :full_name %> <%= contributor_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %> <% end %>

<%= f.link_to_add t('page.add'), :contributors %>

<%= f.label :publisher_string -%>
<%= f.fields_for :publishers do |publisher_form| %> <%= publisher_form.text_field :full_name %> <%= publisher_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %> <% end %>

<%= f.link_to_add t('page.add'), :publishers %>

<%= 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| %> <%= identifier_form.select(:identifier_type_id, @identifier_types.collect{|i| [i.display_name.localize, i.id]}) %> <%= identifier_form.text_field :body, :class => 'resource_isbn_issn', :style => 'ime-mode: disabled' -%> <%= identifier_form.link_to_remove t('page.remove'), :confirm => t('page.are_you_sure') %> <% end %>

<%= f.link_to_add t('page.add'), :identifiers %>

<% if defined?(EnjuSubject) %> <%= render 'manifestations/subject_form', :f => f %> <% end %>
<%= 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 %>
<%= javascript_tag("$(function(){$('#query').focus()})") %> <%- end -%>