Created
December 20, 2016 18:53
-
-
Save braidn/e143106d9159629e2f8985107cc91424 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h2.account__title Your Subscriptions | |
- user.subscriptions.each_with_index do |sub, idx| | |
.subscriptions | |
.subscriptions__section.text-xs-center | |
h5.m-b-1 = "Subscriptions ##{idx} | |
.subscriptions__products | |
- sub.items.each do |item| | |
.subscriptions__product | |
= image_tag item.account_image | |
p.f-1 | |
= item.name | |
br | |
= "1 x #{item.metric_value}" | |
p.m-t-1.m-b-0 | |
strong> Order Total: | |
= sub.total | |
.subscriptions__section | |
p | |
strong> Frequency: | |
= "Every #{sub.frequency} #{'Week'.pluralize(sub.frequency)}" | |
.subscriptions__section__flex | |
h5.m-r-1 Next Shipment: | |
p | |
= sub.current_renewal.renewal_date | |
br | |
= sub.deliveries.last.window | |
br | |
= link_to "Skip Next Delivery", "#", class: 'btn__underline--medium' | |
.subscriptions__section | |
h5 Shipping Address: | |
p = "#{sub.shipping_address.full_name} #{sub.shipping_address.address1}, \ | |
#{sub.shipping_address.city}, #{sub.shipping_address.state_name} #{sub.shipping_address.zipcode}" | |
h5 Billing Information | |
p = "#{user.default_credit_card.cc_type.titelize} xxxx-#{user.default_credit_card.last_digits} \ | |
Exp: #{user.default_credit_card.month}/#{user.default_credit_card.year}" | |
h5 Special Delivery Instructions: | |
p = sub.special_instructions | |
.text-xs-center.m-t-2 | |
= link_to "Cancel Subscription", "#", class: 'btn__underline--medium f-1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment