Created
          October 5, 2016 11:27 
        
      - 
      
- 
        Save johnmeehan/a961bae1d972155da343ddaefb773d2a to your computer and use it in GitHub Desktop. 
    example to bootstrap tabs switching out the tab and its contents
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #tabs | |
| %ul.nav.nav-tabs.nav-justified | |
| %li.active | |
| = link_to 'Quotes', '#quotes', data: { toggle: "tab" } | |
| %li | |
| = link_to 'Draft', '#drafts', data: { toggle: "tab" } | |
| %li | |
| = link_to 'Submitted', '#submitted', data: { toggle: "tab" } | |
| %li | |
| = link_to 'Accepted', '#accepted', data: { toggle: "tab" } | |
| %li | |
| = link_to 'In Production', '#in-production', data: { toggle: "tab" } | |
| %li | |
| = link_to 'Complete', '#complete', data: { toggle: "tab" } | |
| %li | |
| = link_to 'Cancelled', '#cancelled', data: { toggle: "tab" } | |
| .tab-content | |
| #drafts.tab-pane | |
| = render 'sales_orders/table', sales_orders: @sales_orders | |
| #submitted.tab-pane | |
| = render 'sales_orders/table', sales_orders: @sales_orders | |
| #accepted.tab-pane | |
| = render 'sales_orders/table', sales_orders: @sales_orders | |
| #in-production.tab-pane | |
| = render 'sales_orders/table', sales_orders: @sales_orders | |
| #complete.tab-pane | |
| Complete | |
| #cancelled.tab-pane | |
| = render 'sales_orders/table', sales_orders: @sales_orders | |
| #quotes.tab-pane.active | |
| = render 'sales_orders/table', sales_orders: @sales_orders | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment