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