Sha256: 23e276e586a0bb3110a15b4e22b2798c3a506366314de31fdc5af7eef8ce54f8

Contents?: true

Size: 1.07 KB

Versions: 10

Compression:

Stored size: 1.07 KB

Contents

<%= form_for(@fieldset_child) do |f| %>
  <% if @fieldset_child.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@fieldset_child.errors.count, "error") %> prohibited this field from being saved:</h2>

      <ul>
      <% @fieldset_child.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <p>
    <b>Field:</b>
    <%= @fieldset_child.child.name %>
  </p>

  <p>
    <b>Dependencies:</b>
    <br />
  </p>

  <%# only expecting a single dependency group for now %>
  <%= f.fields_for :dependency_group, @fieldset_child.dependency_group do |dependency_group_form| %>
    <%= render :partial => "dependency_group_fields", :locals => {:f => dependency_group_form, :obj => @fieldset_child.dependency_group} %>
  <% end %>
 
  <% if @fieldset_child.dependency_group.nil? %> 
    <p><%= df_link_to_add_fields "Add Dependency", f, :dependency_group %></p>
  <% end %> 

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
<%= render :partial => "/dynamic_fieldsets/shared/nested_model_javascript" %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dynamic_fieldsets-0.1.20 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb
dynamic_fieldsets-0.1.19 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb
dynamic_fieldsets-0.1.18 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb
dynamic_fieldsets-0.1.17 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb
dynamic_fieldsets-0.1.16 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb
dynamic_fieldsets-0.1.15 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb
dynamic_fieldsets-0.1.14 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb
dynamic_fieldsets-0.1.13 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb
dynamic_fieldsets-0.1.12 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb
dynamic_fieldsets-0.1.11 app/views/dynamic_fieldsets/fieldset_children/_form.html.erb