2011-06-28 10:24:40 -07:00
|
|
|
- title "Support Dress to Impress"
|
|
|
|
|
2018-01-18 17:14:02 -08:00
|
|
|
- if @current_campaign.progress > 0
|
|
|
|
= campaign_progress(@current_campaign) do
|
|
|
|
We've received #{cents_to_currency(@current_campaign.progress)}
|
|
|
|
toward #{@current_campaign.purpose}.
|
2014-09-11 15:40:37 -07:00
|
|
|
Thanks so much!
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2014-09-09 18:41:58 -07:00
|
|
|
= form_tag donations_path, method: 'POST', id: 'donation-form',
|
2014-09-10 13:38:26 -07:00
|
|
|
'data-checkout-image' => image_path('default_preview.png'),
|
2015-08-05 16:26:12 -07:00
|
|
|
'data-checkout-publishable-key' => Rails.configuration.stripe[:publishable_key],
|
2018-01-18 17:14:02 -08:00
|
|
|
'data-campaign-theme' => @current_campaign.theme_id do
|
2014-09-09 18:41:58 -07:00
|
|
|
= hidden_field_tag 'donation[stripe_token]'
|
2014-12-23 20:22:15 -08:00
|
|
|
= hidden_field_tag 'donation[stripe_token_type]'
|
2014-09-10 12:32:54 -07:00
|
|
|
= hidden_field_tag 'donation[donor_email]'
|
2017-01-05 15:47:12 -08:00
|
|
|
= hidden_field_tag 'donation[amount]'
|
2014-09-09 16:02:49 -07:00
|
|
|
%header
|
|
|
|
%p#donation-form-title
|
|
|
|
Thanks for supporting Dress to Impress!
|
2017-01-05 15:47:12 -08:00
|
|
|
%p
|
|
|
|
From modeling to servers, Dress to Impress is a community effort.
|
2018-01-18 17:14:02 -08:00
|
|
|
This year, we need to raise
|
|
|
|
#{cents_to_currency(@current_campaign.goal, precision: 0)}
|
|
|
|
to cover our #{@current_campaign.name} hosting costs.
|
2017-01-05 15:47:12 -08:00
|
|
|
%p
|
|
|
|
As a thank-you gift, for every $5 you give, we'll feature one of your
|
2018-01-18 17:14:02 -08:00
|
|
|
outfits here and on the homepage. Show off your latest designs!
|
2017-01-05 15:47:12 -08:00
|
|
|
%p
|
|
|
|
All donations are securely powered by
|
|
|
|
#{link_to 'Stripe', 'https://stripe.com/'}, and go directly toward our
|
|
|
|
hosting costs. Thank you for your help!
|
|
|
|
#donation-fields
|
|
|
|
#amount-header Amount
|
|
|
|
#amount-choices
|
|
|
|
%li
|
|
|
|
%input#amount-5{type: 'radio', name: 'amount', value: '5.00'}
|
|
|
|
%label{for: 'amount-5'} $5
|
|
|
|
%li
|
|
|
|
%input#amount-10{type: 'radio', name: 'amount', value: '10.00'}
|
|
|
|
%label{for: 'amount-10'} $10
|
|
|
|
%li
|
|
|
|
%input#amount-30{type: 'radio', name: 'amount', value: '20.00', checked: true}
|
|
|
|
%label{for: 'amount-30'} $20
|
|
|
|
%li
|
|
|
|
%input#amount-50{type: 'radio', name: 'amount', value: '50.00'}
|
|
|
|
%label{for: 'amount-50'} $50
|
|
|
|
%li
|
|
|
|
%input#amount-custom{type: 'radio', name: 'amount', value: 'custom'}
|
|
|
|
%label{for: 'amount-custom'} Other
|
|
|
|
%label#amount-custom-fields{for: 'amount-custom-value'}
|
|
|
|
%input#amount-custom-value{type: 'text'}
|
|
|
|
#donation-controls
|
|
|
|
%button{type: 'submit'} Donate now!
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2014-09-11 18:58:37 -07:00
|
|
|
- if @donations.present?
|
2017-01-05 13:06:50 -08:00
|
|
|
#outfits-header
|
|
|
|
%h2 Thanks to our lovely donors!
|
|
|
|
- if @all_campaigns.length > 1
|
|
|
|
%ul#all-campaigns-list
|
|
|
|
- @all_campaigns.each do |campaign|
|
|
|
|
%li
|
|
|
|
- if campaign == @campaign
|
|
|
|
%strong= campaign.name
|
|
|
|
- else
|
|
|
|
= link_to campaign.name, campaign
|
2014-09-11 18:58:37 -07:00
|
|
|
%ul#outfits
|
|
|
|
- @donations.each do |donation|
|
2014-11-20 12:27:12 -08:00
|
|
|
-# if large_donation?(donation.amount)
|
2014-09-13 18:54:39 -07:00
|
|
|
%li.banner
|
|
|
|
%span
|
|
|
|
Thanks, #{donation.donor_name}, for donating
|
|
|
|
#{number_to_currency(donation.amount / 100.0)}!
|
2014-09-11 18:58:37 -07:00
|
|
|
- donation.features.each do |feature|
|
2014-09-13 18:54:39 -07:00
|
|
|
- if outfit_image?(feature.outfit) || !large_donation?(donation.amount)
|
|
|
|
%li
|
|
|
|
- if outfit_image?(feature.outfit)
|
|
|
|
= link_to image_tag(feature.outfit.image.small.url), feature.outfit
|
|
|
|
- else
|
|
|
|
= image_tag 'default_preview.png'
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2014-09-13 18:54:39 -07:00
|
|
|
%header Thanks, #{donation.donor_name.presence || 'Anonymous'}!
|
2017-01-05 13:06:50 -08:00
|
|
|
- else
|
|
|
|
- current_index = @all_campaigns.index(@campaign)
|
|
|
|
- prev_campaign = @all_campaigns[current_index + 1]
|
|
|
|
- if prev_campaign
|
|
|
|
%p#last-years-donors= link_to "Don't forget to check out last year's donors, too!", prev_campaign
|
2015-08-05 16:26:12 -07:00
|
|
|
|
2014-09-09 16:02:49 -07:00
|
|
|
#fine-print
|
|
|
|
%h2 Some notes on featured outfits
|
|
|
|
:markdown
|
2018-01-18 17:14:02 -08:00
|
|
|
**TL;DR: We love to help and acknowledge our good-faith donors,
|
|
|
|
but reserve the right not to do those things,
|
|
|
|
in order to better handle bad-faith donors and unexpected circumstances.**
|
|
|
|
#{image_tag 'emoticons/smiley.gif'}
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2018-01-18 17:14:02 -08:00
|
|
|
When you make a donation, we'll divide the amount by $5 USD, and, rounding
|
|
|
|
down, that's how many of your outifts we'll feature. This is our way of
|
|
|
|
publicly thanking our donors, and we love doing it! However, it is not a
|
|
|
|
purchased service. Your outfit is not guaranteed to appear anywhere on the
|
|
|
|
site, for any amount of time. (That said, our donors' outfits generally
|
|
|
|
appear on the site very quickly, and we plan to continue to showcase them
|
|
|
|
for as long as the site stays up!)
|
2014-09-09 16:02:49 -07:00
|
|
|
|
2015-08-30 16:49:46 -07:00
|
|
|
We reserve the right to refuse to post any content for any reason, and we
|
|
|
|
reserve the right to remove any previously posted content at any time for
|
2018-01-18 17:14:02 -08:00
|
|
|
any reason. If we we're not comfortable with the outfit's name, the
|
|
|
|
outfit's appearance, or the name on your donation, or anything else, then
|
|
|
|
we might choose not to publish it.
|
|
|
|
(That said, we plan to allow any name and outfit that are appropriate for
|
|
|
|
Neopians of all ages.)
|
2011-07-01 11:53:28 -07:00
|
|
|
|
2015-08-30 16:49:46 -07:00
|
|
|
If you change your mind about donating, no worries: you can request a
|
2018-01-18 17:14:02 -08:00
|
|
|
refund at any time #{image_tag 'emoticons/smiley.gif'} If it's within 30
|
|
|
|
days of when you donated, then we promise to refund your donation as soon
|
|
|
|
as we can. If it's been longer, we're a bit more limited in what we can do,
|
|
|
|
but we'll try our best to help! Additionally, if we remove your outfit
|
|
|
|
because we didn't feel comfortable showcasing it, then we may choose not to
|
|
|
|
issue a refund, regardless of when you ask. (Sorry for the extra
|
|
|
|
complexity, but this exception helps us discourage bad behavior.)
|
2011-07-01 11:53:28 -07:00
|
|
|
|
2018-01-18 17:14:02 -08:00
|
|
|
We also accept donations via PayPal.
|
|
|
|
#{mail_to 'webmaster@openneo.net', "Please email us for more information."}
|
|
|
|
Thank you!!
|
2014-09-09 18:24:27 -07:00
|
|
|
|
|
|
|
- content_for :javascripts do
|
|
|
|
= javascript_include_tag 'https://checkout.stripe.com/checkout.js',
|
|
|
|
'static/donate.js'
|