Sha256: ed938fb74fbf813bf5514aefb33264d9b0f328d2e6ce245b2d3bf19f63e4a0cf

Contents?: true

Size: 824 Bytes

Versions: 3

Compression:

Stored size: 824 Bytes

Contents

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

.row.bottom-room
  .pull-right
    =icon_link_to("New Membership Type", new_membership_type_path, 'icon-plus', 'btn','')
    =link_to "Download CSV", "", :class => "btn"

%table.table
  %tr
    %th Name
    %th.right Members
    %th.right Tickets
    %th.right Price
    %th.right Fee
    %th.right On Sale
  -@membership_types.each do |membership_type|
    %tr
      %td=link_to membership_type.name, edit_membership_type_path(membership_type)
      %td.right=link_to membership_type.members.count, segment_path(membership_type.segment)
      %td.right=membership_type.number_of_tickets || "unlimited"
      %td.right=number_as_cents membership_type.price
      %td.right=number_as_cents membership_type.fee
      %td.right
        =check_mark if membership_type.on_sale?

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.9 app/views/membership_types/index.html.haml
artfully_ose-1.2.0.pre.8 app/views/membership_types/index.html.haml
artfully_ose-1.2.0.pre.7 app/views/membership_types/index.html.haml