Sha256: efa701dae0dc11fdf9a5db6f892258e36137ffba716888c7482774a81fcedd2a

Contents?: true

Size: 761 Bytes

Versions: 6

Compression:

Stored size: 761 Bytes

Contents

%div{:class => "nested_form #{nested_form.field_style}", :id => "nested_form_#{nested_form.__id__}"}
  - unless nested_form.field_style == :normal
    = render_component *nested_form.as_field.build(:name=>"/lolita/configuration/field", :state => :"label")
  .nested-form-fields-container
    - old_form = self.current_form
    = current_form.fields_for nested_form.name, resource.send(nested_form.build_method) do |form|
      - self.current_form = form
      = render_component nested_form, :fields 
    - self.current_form = old_form
  - if nested_form.expandable? && !nested_form.update_only?
    %p
      =link_to_add_fields ::I18n.t("lolita.nested_form.add", :resource_name => nested_form.klass.lolita_model_name.human.downcase), current_form, nested_form 

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lolita-3.2.0.rc.14 app/views/components/lolita/configuration/nested_form/_display.html.haml
lolita-3.2.0.rc.13 app/views/components/lolita/configuration/nested_form/_display.html.haml
lolita-3.2.0.rc.12 app/views/components/lolita/configuration/nested_form/_display.html.haml
lolita-3.2.0.rc.11 app/views/components/lolita/configuration/nested_form/_display.html.haml
lolita-3.2.0.rc.10 app/views/components/lolita/configuration/nested_form/_display.html.haml
lolita-3.2.0.rc.9 app/views/components/lolita/configuration/nested_form/_display.html.haml