Sha256: a64b78d3041a5421989f7bf9f410f8482d3edc33901e61057b8db9f2a0c3db2c

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

Contents

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

.row
  .span3
    - in_sub_section :share
    = render :partial => 'events/menu'
  .span9
    = render "shared/error_messages", :target => @event
    .row-fluid
      .span3
        %h3 Discounts
      .span9
        =icon_link_to("Add", new_event_discount_path(@event), 'fa-plus-circle', 'btn', '')
    %table.table
      %thead
        %th Code
        %th Status
        %th Discount
        %th Redeemed
        %th
      %tbody
        - @discounts.each do |discount|
          %tr
            %td= link_to discount.code, edit_event_discount_path(@event, discount)
            %td= discount.active? ? "Active" : "Inactive"
            %td= discount
            %td= discount.redeemed
            - if discount.destroyable?
              %td= link_to "Delete", event_discount_path(@event, discount), method: :delete, confirm: "Are you sure you want to delete this discount?", class: "btn btn-mini btn-danger"
            - else
              %td= link_to "Delete", "#", class: "btn btn-mini btn-danger disabled"

Version data entries

11 entries across 11 versions & 1 rubygems

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