Sha256: c28faec39b30fa88d46d75f3eb14d0b62e5a303d7afe67dcd84359d97c048d86

Contents?: true

Size: 1 KB

Versions: 25

Compression:

Stored size: 1 KB

Contents

.controls.col-sm-10{data: { nestedmany: true }}
  .btn-group
    %a.btn.btn-info.toggler{:'data-toggle' => "button", :'data-target' => "#{form.jquery_namespace(field)} > .tab-content, #{form.jquery_namespace(field)} > .controls > .nav", class: (field.active? ? 'active' : '')}
      %i.icon-white
    - unless field.nested_form[:update_only] || !field.inline_add
      = form.link_to_add "<i class=\"icon-plus icon-white\"></i> #{wording_for(:link, :new, field.associated_model_config.abstract_model)}".html_safe, field.name, { class: 'btn btn-info' }
  = form.errors_for(field)
  = form.help_for(field)
  %ul.nav.nav-tabs

.tab-content
  = form.fields_for field.name do |nested_form|
    - if field.nested_form[:allow_destroy] || nested_form.options[:child_index] == "new_#{field.name}"
      = nested_form.link_to_remove '<span class="btn btn-small btn-danger"><i class="icon-trash icon-white"></i></span>'.html_safe
    = nested_form.generate({action: :nested, model_config: field.associated_model_config, nested_in: field })

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
rails_admin-2.3.1 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.3.0 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.2.1 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.2.0 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.1.1 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.1.0 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.0.2 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-1.4.3 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.0.1 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.0.0 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.0.0.rc app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-2.0.0.beta app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-1.4.2 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-1.4.1 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-1.4.0 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-1.3.0 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-1.2.0 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-1.1.1 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-1.1.0 app/views/rails_admin/main/_form_nested_many.html.haml
rails_admin-1.0.0 app/views/rails_admin/main/_form_nested_many.html.haml