<%= form_for(@manifestation_relationship) do |f| %> <%= f.error_messages -%>
<% if @manifestation_relationship.try(:parent) %> <%= f.label :parent %>
<%= link_to @manifestation_relationship.parent.original_title, @manifestation_relationship.parent %> <%= f.hidden_field :parent_id %> <% else %> <%= f.label :parent %>
<%= f.text_field :parent_id %> <% end %>
<% if @manifestation_relationship.child.try(:original_title) %> <%= f.label :child %>
<%= link_to @manifestation_relationship.child.original_title, @manifestation_relationship.child %> <%= f.hidden_field :child_id %> <% else %> <%= f.label :child %>
<%= f.text_field :child_id %> <% end %>
<%= f.label :manifestation_relationship_type_id %>
<%= f.select(:manifestation_relationship_type_id, @manifestation_relationship_types.collect{|r| [r.display_name.localize, r.id]}) -%>
<%= f.submit %>
<% end %>