Sha256: 7bb65334ad0bef0fe4e50559031a93ce776c32c29c46b2acd7916b411eb4169a

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

<div class="child">
<% for attribute in child_model.attributes -%>
  <p>
    <%= child_model.name %> <%%= f.label :<%= attribute.name %> %><br />
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
  </p>
<% end -%>
  <p>
    <%%= f.hidden_field :_delete, :class => 'delete' %>
    <%%= remove_child_link 'remove', f %>
  </p>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
view_mapper-0.3.3 lib/view_mapper/views/has_many/templates/view_child_form.html.erb
view_mapper-0.3.2 lib/view_mapper/views/has_many/templates/view_child_form.html.erb
view_mapper-0.3.1 lib/view_mapper/views/has_many/templates/view_child_form.html.erb
view_mapper-0.3.0 lib/view_mapper/has_many_templates/view_child_form.html.erb