Sha256: 475da8ba84d7c8ed90c23824ff959aa6fa06bbaca3d2344fb28735139649c6c1

Contents?: true

Size: 1.34 KB

Versions: 10

Compression:

Stored size: 1.34 KB

Contents

- in_section :events
- content_for :header do
  =render :partial=>'events/header'

.row
  .span3
    - in_sub_section :share
    =render :partial=>'events/menu'
  .span9
    .row-fluid
      .span3
        %h3 Passes
      .span9
        =icon_link_to("Add", new_event_events_pass_type_path(@event), 'fa fa-plus-sign', 'btn', '') unless @no_pass_types
    -if @no_pass_types
      .no-image#add-a-pass-type
        #text
          =icon_tag '282-cards'
          %br
          =link_to "You haven't set up any passes yet. Click here to get started.", new_pass_type_path
    -else
      %table.table
        %thead
          %tr
            %th Pass
            %th Ticket Types
            %th.right Excluded Shows
            %th.right Limit per Pass
            %th.right Active
        -@events_pass_types.each do |ept|
          %tr
            %td
              =link_to ept.pass_type.name,  edit_event_events_pass_type_path(@event, ept)
            %td
              -if ept.ticket_types.empty?
                %strong
                  No Ticket Types
              -else
                - ept.ticket_types.each do |ticket_type|
                  =ticket_type
                  %br
            %td.right
              =ept.excluded_shows.count
            %td.right
              =ept.limit_per_pass
            %td.right
              =check_mark if ept.active?

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 app/views/events_pass_types/index.html.haml
artfully_ose-1.3.0.pre3 app/views/events_pass_types/index.html.haml
artfully_ose-1.3.0.pre2 app/views/events_pass_types/index.html.haml
artfully_ose-1.3.0.pre1 app/views/events_pass_types/index.html.haml
artfully_ose-1.2.0 app/views/events_pass_types/index.html.haml
artfully_ose-1.2.0.beta.1 app/views/events_pass_types/index.html.haml
artfully_ose-1.2.0.alpha.2 app/views/events_pass_types/index.html.haml
artfully_ose-1.2.0.alpha.1 app/views/events_pass_types/index.html.haml
artfully_ose-1.2.0.pre.27 app/views/events_pass_types/index.html.haml
artfully_ose-1.2.0.pre.26 app/views/events_pass_types/index.html.haml