Sha256: f626fd6ec0ca01958bb542d49b7464aeb0c4feb3696ff60d373af07e3672c349

Contents?: true

Size: 781 Bytes

Versions: 5

Compression:

Stored size: 781 Bytes

Contents

.add-button.dropdown
  %button.btn.btn-primary{ type: 'button', data: { toggle: 'dropdown' } }
    %i.fa.fa-plus
    = t('para.form.nested.add')
    %span.caret
  %ul.dropdown-menu
    - model.descendants.sort_by { |m| m.model_name.human }.each do |submodel|
      %li
        = link_to_add_association form, attribute_name, wrap_object: proc { submodel.new }, partial: find_partial_for(submodel, 'nested_many/container', partial_dir: 'inputs'), form_name: 'form', class: 'dropdown-link', data: { :'association-insertion-node' => "##{ dom_identifier }", :'association-insertion-method' => 'append' }, render_options: { nested_attribute_name: attribute_name, orderable: orderable, locals: { model: submodel, nested_locals: nested_locals } } do
          = submodel.model_name.human

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
para-0.6.3 app/views/para/inputs/nested_many/_add_with_subclasses.html.haml
para-0.6.2 app/views/para/inputs/nested_many/_add_with_subclasses.html.haml
para-0.5.4 app/views/para/inputs/nested_many/_add_with_subclasses.html.haml
para-0.5.3 app/views/para/inputs/nested_many/_add_with_subclasses.html.haml
para-0.5.1 app/views/para/inputs/nested_many/_add_with_subclasses.html.haml