Sha256: 8c66fc104acf1b54bfcd607b479ab71b1c25bd9f40e7911660284af87a7c3d18

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

.controls
  %ul.nav.nav-tabs{ :style => 'margin-top:5px' }
    - field.tabs.each do |tab|
      %li{ class: ('active' if tab.active?) }
        = link_to tab.label, "#", data: { toggle: "tab",  target: "##{tab.id}" }, class: ('text-danger' unless tab.valid?)

.tab-content
  - field.tabs.each do |tab|
    = form.fields_for field.name, tab.translation, wrapper: false do |f|
      .fields.tab-pane{ id: tab.id, class: ('active' if tab.active?) }
        = f.generate(action: :nested, model_config: field.associated_model_config, nested_in: field)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_admin_globalize_field-1.2.0 app/views/rails_admin/main/_form_globalize_tabs.html.haml
rails_admin_globalize_field-1.1.0 app/views/rails_admin/main/_form_globalize_tabs.html.haml