Sha256: fa1f10736dcfa841074a1eb27ef6da4b198f1433df4a0defa732a11f4c175536

Contents?: true

Size: 794 Bytes

Versions: 42

Compression:

Stored size: 794 Bytes

Contents

.form-tabs{ data: { :'form-tabs' => true, :'top-level-tabs' => !tabs_manager.builder.nested? } }
  -# The .nav-tabs-wrapper is used to maintain the tabs height when the tabs
  -# are fixed to top
  .nav-tabs-wrapper{ data: { :'nav-tabs-wrapper' => true } }
    %ul.nav.nav-tabs.affix-no-mobile{ role: 'tablist', data: { :'tabs-nav-affix' => tabs_manager.affix? } }
      - tabs.each do |tab|
        %li{ class: ('active' if tab.active?), role: 'presentation' }
          = link_to "##{ tab.dom_id }", role: 'tab', aria: { controls: 'settings' }, data: { toggle: 'tab' } do
            %i.fa{ class: "fa-#{ tab.icon }" }
            = tab.title

  .tab-content
    - tabs.each do |tab|
      .tab-pane{ id: tab.dom_id, class: ('active' if tab.active?), role: 'tabpanel' }
        = tab.content

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
para-0.7.3 app/views/para/form/_tabs.html.haml
para-0.7.2 app/views/para/form/_tabs.html.haml