Sha256: d2deb71748c7535b64de7b82a923714df9914ee6ed0b6494ce4af8f1d0fc0ac3

Contents?: true

Size: 828 Bytes

Versions: 24

Compression:

Stored size: 828 Bytes

Contents

- tab = local_assigns[:tab]
#new_ticket_tabs
  %ul.nav.nav-tabs.nav-append-content
    - @ticket_types.keys.each do |type|
      %li
        %a{class: "#{type.underscore}-tab", 
          href: "##{type.underscore}-tab", 
            "data-toggle" => "tab"}
          = type.humanize

  .tab-content
    - @ticket_types.keys.each do |type|
      .tab-pane{id: "#{type.underscore}-tab"}
        = render "#{type.underscore}_form", ticket: @ticket_types[type]

- if tab.present?
  :coffeescript
    $ ->
      $('#new_ticket_tabs a.#{tab}-tab').tab('show')
- else
  :coffeescript
    $ ->
      $('#new_ticket_tabs a:first').tab('show')
:coffeescript
  $ ->
    $('#new_ticket_tabs a[data-toggle="tab"]').on 'shown.bs.tab', (event) ->
      $tab = $($(event.target).attr("href"))
      $tab.find("input[type=text]:first").focus()

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
tawork-0.0.24 app/views/tickets/_form.html.haml
tawork-0.0.23 app/views/tickets/_form.html.haml
tawork-0.0.22 app/views/tickets/_form.html.haml
tawork-0.0.21 app/views/tickets/_form.html.haml
tawork-0.0.20 app/views/tickets/_form.html.haml
tawork-0.0.19 app/views/tickets/_form.html.haml
tawork-0.0.18 app/views/tickets/_form.html.haml
tawork-0.0.17 app/views/tickets/_form.html.haml
tawork-0.0.16 app/views/tickets/_form.html.haml
tawork-0.0.15 app/views/tickets/_form.html.haml
tawork-0.0.14 app/views/tickets/_form.html.haml
tawork-0.0.13 app/views/tickets/_form.html.haml
tawork-0.0.12 app/views/tickets/_form.html.haml
tawork-0.0.11 app/views/tickets/_form.html.haml
tawork-0.0.10 app/views/tickets/_form.html.haml
tawork-0.0.9 app/views/tickets/_form.html.haml
tawork-0.0.8 app/views/tickets/_form.html.haml
tawork-0.0.7 app/views/tickets/_form.html.haml
tawork-0.0.6 app/views/tickets/_form.html.haml
tawork-0.0.5 app/views/tickets/_form.html.haml