Sha256: aa4142b3d6b266224493313406fcbde133326e32e13d92197250280d1831bdfd
Contents?: true
Size: 1020 Bytes
Versions: 69
Compression:
Stored size: 1020 Bytes
Contents
<%= form_for(@agent_relationship) do |f| %> <%= f.error_messages -%> <div class="field"> <% if @agent_relationship.try(:parent) %> <%= f.label :parent %><br /> <%= link_to @agent_relationship.parent.full_name, @agent_relationship.parent %> <%= f.hidden_field :parent_id %> <% else %> <%= f.label :parent %><br /> <%= f.text_field :parent_id %> <% end %> </div> <div class="field"> <% if @agent_relationship.child.try(:full_name) %> <%= f.label :child %><br /> <%= link_to @agent_relationship.child.full_name, @agent_relationship.child %> <%= f.hidden_field :child_id %> <% else %> <%= f.label :child %><br /> <%= f.text_field :child_id %> <% end %> </div> <div class="field"> <%= f.label :agent_relationship_type_id %><br /> <%= f.select(:agent_relationship_type_id, @agent_relationship_types.collect{|r| [r.display_name.localize, r.id]}) -%> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
Version data entries
69 entries across 68 versions & 2 rubygems