Sha256: 2956ad8cbc4d1c2d01f0415c571092c9702df918b60b76592d4f10d94a9f3b45

Contents?: true

Size: 1.09 KB

Versions: 120

Compression:

Stored size: 1.09 KB

Contents

<%= form_for(@manifestation_relationship) do |f| %>
  <%= f.error_messages -%>

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

Version data entries

120 entries across 119 versions & 2 rubygems

Version Path
enju_biblio-0.1.0.pre11 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre10 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre9 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre8 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre7 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre6 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre5 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre4 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre3 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre2 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.1.0.pre app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.0.9 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.0.8 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.0.7 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.0.6 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.0.5 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.0.4 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.0.3 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.0.2 app/views/manifestation_relationships/_form.html.erb
enju_biblio-0.0.1 app/views/manifestation_relationships/_form.html.erb