Sha256: b2978a8c9288b8b200827c09347ff9735d187b0689c6e46b56032425f975dcac

Contents?: true

Size: 948 Bytes

Versions: 5

Compression:

Stored size: 948 Bytes

Contents

.controls{:data => { :nestedone => true }}
  %ul.nav{:style => 'margin-bottom:0px; display:none'}
  %a.btn.btn-info.toggler{:'data-toggle' => "button", :'data-target' => "#{form.jquery_namespace(field)} > .tab-content", :class => (field.active? ? 'active' : '') }
  = form.errors_for(field)
  = form.help_for(field)

- form.object.send("build_#{field.name}") unless form.object.send(field.name)
.tab-content
  = form.fields_for field.name do |nested_form|
    - if field.nested_form[:allow_destroy] && nested_form.object.persisted?
      = link_to "javascript:void(0)", :class => 'remove_nested_one_fields btn btn-small btn-danger', :'data-toggle' => 'button', :title => I18n.t('admin.misc.remove') do
        = content_tag :i, nil, :class => 'icon-white icon-trash'
        = nested_form.hidden_field :_destroy, :id => nil
    = nested_form.generate({:action => :nested, :model_config => field.associated_model_config, :nested_in => field.name })

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_admin-0.5.0 app/views/rails_admin/main/_form_nested_one.html.haml
rails_admin-0.4.9 app/views/rails_admin/main/_form_nested_one.html.haml
rails_admin-0.4.8 app/views/rails_admin/main/_form_nested_one.html.haml
rails_admin-0.4.7 app/views/rails_admin/main/_form_nested_one.html.haml
rails_admin-0.4.6 app/views/rails_admin/main/_form_nested_one.html.haml