Sha256: 6626da940ed8788de1421fb88b84cea3b9d65b95eb8a4c83ff90ecfc69eac85e

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

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

.row
  .span3
    - in_sub_section :passes
    =render :partial=>'events/menu'
  .span9
    .row-fluid
      .span3
        %h3 Passes
      .span9
        =icon_link_to("Add", new_event_events_pass_type_path(@event), 'icon-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 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?
                All Ticket Types
              -else
                - ept.ticket_types.each do |ticket_type|
                  =ticket_type
                  %br
            %td.right
              =ept.excluded_shows.count
            %td.right
              =check_mark if ept.active?

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.23 app/views/events_pass_types/index.html.haml