app/views/carnival/shared/form/_inner_form.html.haml in carnival-0.0.43 vs app/views/carnival/shared/form/_inner_form.html.haml in carnival-0.0.44

- old
+ new

@@ -19,15 +19,16 @@ = " | " = link_to_function t("nested_form.new"), "createNewForm('.nested-form-list.#{field.name}', '#{field.name}')" - if field.nested_form_modes?(:associate) = " | " - = link_to_function t("nested_form.existing_option"), "renderSelectOptions()" - - .existing-options + = link_to_function t("nested_form.existing_option"), "renderSelectOptions('.existing-options.#{field.name}')" + + .existing-options{:class => field.name} %h4.existing-options-title = t("nested_form.existing_option_title") - = f.association field.name.to_sym, as: :check_boxes,label: false + - field_presenter = model_presenter.presenter_to_field(field, nil) + = f.collection_check_boxes "#{field.name.singularize.to_sym}_ids".to_sym, field_presenter.model_class.send("all"), :id, field_presenter.model_class.to_label_options %ul.nested-form-list{:class => field.name} %h4.nested-form-subtitle = t("nested_form.new_subtitle") - model_object.send(field.name).build