%= form_for(@subject) do |f| -%>
<%= f.error_messages -%>
<%= f.label t('activerecord.models.subject_type') -%>
<%= f.select(:subject_type_id, @subject_types.collect{|s| [s.display_name.localize, s.id]}) -%>
<%= f.label :term -%>
<%= f.text_field :term -%>
<%= f.label :term_transcription -%>
<%= f.text_field :term_transcription -%>
<%= f.label :note -%>
<%= f.text_area :note -%>
<%- if @classification -%>
<%= f.label t('activerecord.models.classification') -%>
<%= link_to @classification.category, @classification -%>
<%= f.hidden_field :classification_id -%>
<%- end -%>
<%- if @subject_heading_type -%>
<%= f.label t('activerecord.models.subject_heading_type') -%>
<%= link_to @subject_heading_type.display_name.localize, @subject_heading_type -%>
<%= f.hidden_field :subject_heading_type_id -%>
<%- end -%>
<%= f.submit %>
<%- end -%>