Sha256: acdab9b1aae824c44686f1ca1c748a769bfb218986aad9cd806ce625610001c4

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

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", membership_types_path(:format => "csv"), :class => "btn"

%table.table#membership-types-table
  %tr
    %th Name
    %th.right # Sold
    %th.right Members
    %th.right Price
    %th.right Visibility
    %th.right
  -@membership_types.each do |membership_type|
    %tr
      %td=link_to membership_type.name, edit_membership_type_path(membership_type)
      %td.right=membership_type.memberships.count
      %td.right=link_to membership_type.members.group(:member_id).length, segment_path(membership_type.segment)
      %td.right=number_as_cents membership_type.price
      %td.right
        %a{:href => "#", :class => "artfully-tooltip", :rel => "tooltip", "data-original-title" => "This membership is currently #{"not" unless membership_type.on_sale?} visible in your online Storefront.", "data-trigger" => "hover"}
          %span.badge{:class => "#{'badge-success' if membership_type.on_sale?}"}="S"

      %td.right
        = link_to('Store link', membership_type_storefront_path(membership_type))

Version data entries

1 entries across 1 versions & 1 rubygems

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