Sha256: 06822a5e7e891ead20b84a3288d75cbae05c01f55f8b608a7f02708e4eccd307

Contents?: true

Size: 1.37 KB

Versions: 5

Compression:

Stored size: 1.37 KB

Contents

- content_for :header do
  %h1= "Pass Types"

.row.bottom-room
  .pull-right
    =icon_link_to("New Pass Type", new_pass_type_path, 'fa-plus', 'btn','')
    =link_to "Download CSV", pass_types_path(:format => "csv"), :class => "btn"

%table.table#pass-types-table
  %tr
    %th Name
    %th Starts
    %th Ends
    %th.right Passes Sold
    %th.right # Tickets
    %th.right Price
    %th.right Visibility
    %th.right
  -@pass_types.each do |pass_type|
    %tr
      %td=link_to pass_type.name, edit_pass_type_path(pass_type)
      %td=l pass_type.starts_at, :format => :slashed_date
      %td=l pass_type.ends_at, :format => :slashed_date
      %td.right=pass_type.passes.count
      %td.right=pass_type.tickets_allowed
      %td.right=number_as_cents pass_type.price
      %td.right
        %a{:href => "#", :class => "artfully-tooltip", :rel => "tooltip", "data-original-title" => "This pass is currently #{"not" unless pass_type.on_sale?} visible in your online Storefront.", "data-trigger" => "hover"}
          %span.badge{:class => "#{'badge-success' if pass_type.on_sale?}"}="S"

      %td.right
        -if pass_type.destroyable? 
          = link_to('Delete', pass_type_path(pass_type), :method => :delete, :class => "btn btn-mini btn-danger")
        =icon_link_to("Store link", store_pass_path(current_user.current_organization.cached_slug, pass_type), 'fa-shopping-cart', 'btn btn-mini', '')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.alpha.2 app/views/pass_types/index.html.haml
artfully_ose-1.2.0.alpha.1 app/views/pass_types/index.html.haml
artfully_ose-1.2.0.pre.27 app/views/pass_types/index.html.haml
artfully_ose-1.2.0.pre.26 app/views/pass_types/index.html.haml
artfully_ose-1.2.0.pre.24 app/views/pass_types/index.html.haml