Sha256: 4f3f47fff41aea7b2eb326531c6ee9881479de12ee8fe4e52bba936fa8d6ad3f
Contents?: true
Size: 1.48 KB
Versions: 12
Compression:
Stored size: 1.48 KB
Contents
=form_tag person_membership_cancellations_path, :class => 'form-horizontal', 'novalidate' => true, :method => :post, :remote => true do .modal-header .close{'data-dismiss'=>'modal'} x %h3 Cancel Membership .modal-body .control-group %label.control-label Cancel #{pluralize_word(@cancellation.memberships.count, 'this', 'these')} .controls %ol - @cancellation.memberships.each do |membership| %li =hidden_field_tag('membership_ids[]', membership.id) %span{:class => (membership.refundable? ? 'text-info' : '')} #{membership.membership_type.name} - #{number_as_cents membership.price} .control-group %label.control-label Refund amount .controls - if @cancellation.refund_available? =text_field_tag('refund_amount', number_as_cents(@cancellation.refund_amount), :class => 'span1', :disabled => 'disabled') - if @cancellation.memberships.count > 1 %p %em %small Note: Amount ONLY includes %span{:class => 'text-info'}refundable memberships. - else %h4 Sorry %p A refund is not possible for the selected #{pluralize_word(@cancellation.memberships.count, 'membership')}. .modal-footer =submit_tag('Cancel Memberships', :class => 'btn btn-warning') =link_to 'Nevermind', '#', :class => 'btn', 'data-dismiss' => 'modal'
Version data entries
12 entries across 12 versions & 1 rubygems