2012-10-14 19:31:18 +00:00
{% extends "basedocumentation.html" %}
{% block title %}Your Unglue.it Account{% endblock %}
2012-10-15 03:41:17 +00:00
{% block extra_extra_head %}
2014-04-10 17:15:08 +00:00
{{ block.super }}
2012-10-15 03:41:17 +00:00
< link type = "text/css" rel = "stylesheet" href = "/static/css/pledge.css" / >
2014-04-10 17:15:08 +00:00
2012-10-15 03:41:17 +00:00
{% include "stripe_stuff.html" %}
< script >
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j('#show_cc_form').click(function(){
$j('#cc_pledge').toggle();
});
});
< / script >
{% endblock %}
2012-10-14 19:31:18 +00:00
{% block doccontent %}
< h2 > Your Pledges< / h2 >
2012-10-14 21:44:17 +00:00
< dl >
{% for transaction in request.user.profile.pledges %}
2012-10-18 13:04:22 +00:00
< dt > < i > < a href = "{% url work transaction.campaign.work.id %}" > {{ transaction.campaign.work.title }}< / a > < / i > (< a href = "{% url pledge_modify transaction.campaign.work.id %}" > modify pledge< / a > )< / dt >
2012-10-15 04:22:23 +00:00
< dd > < div class = "modify_notification" >
2012-10-14 21:44:17 +00:00
{% include "trans_summary.html" %}
2012-10-15 04:22:23 +00:00
< / div > < / dd >
2012-10-18 13:04:22 +00:00
{% empty %}
2012-11-20 14:56:04 +00:00
< dt > You don't have any active pledges. To make one, click on a book you'd like to support among our < a href = "{% url campaign_list facet=" ending " % } " > active campaigns< / a > . There's a "Support" button on every campaign page, or just click on your favorite premium to get started.< / dt >
2012-10-14 21:44:17 +00:00
{% endfor %}
< / dl >
2012-10-15 04:16:56 +00:00
< h2 id = "your_payment_info" > Your Payment Info< / h2 >
2012-10-15 03:41:17 +00:00
{% if request.user.profile.account %}
2012-10-15 13:52:39 +00:00
< p > Unglue.it has a credit card on file for you. We'll use this to fund your pledges.< / p >
< b > Card type:< / b > {{ request.user.profile.account.card_type }}< br / >
< b > Number:< / b > ************{{ request.user.profile.account.card_last4 }}< br / >
< b > Expiration date:< / b > {{ request.user.profile.account.card_exp_month }}/{{ request.user.profile.account.card_exp_year }}.< br / >
< p > We use < a href = "https://stripe.com/" > Stripe< / a > to keep your information secure.< / p > < br / >
< p > < a class = "fakeinput" id = "show_cc_form" > Update Card< / a > < / p >
2012-10-15 03:41:17 +00:00
{% else %}
{% if request.user.profile.old_account %}
2012-10-15 13:52:39 +00:00
< p > The card you previously gave us has become inactive; for example, because of its expiration date. You'll need to provide a current one before you can support ungluing campaigns.< / p >
< p > We use < a href = "https://stripe.com/" > Stripe< / a > to keep your information secure.< / p > < br / >
< p > < a class = "fakeinput" id = "show_cc_form" > Update Card< / a > < / p >
{% else %}
< p > Unglue.it has no active credit card on file for you. You'll need to provide one before you can support ungluing campaigns.< / p >
< p > We use < a href = "https://stripe.com/" > Stripe< / a > to keep your information secure.< / p > < br / >
< p > < a class = "fakeinput" id = "show_cc_form" > Add A Card< / a > < / p >
2012-10-15 03:41:17 +00:00
{% endif %}
{% endif %}
< div id = "cc_pledge" style = "display: none;" >
< div id = "authorize" class = "clearfix" >
2012-10-18 13:04:22 +00:00
< form action = "#" method = "POST" id = "payment-form" >
2012-10-15 03:41:17 +00:00
< div class = "innards" >
< div class = "clearfix" >
{% csrf_token %}
{{ form.non_field_errors }}
{{ form.as_p }}
< / div >
< div class = "form-row clearfix" >
< label > Card Number:< / label >
2012-10-18 13:04:22 +00:00
< input id = "card_Number" type = "text" class = "card-number" / >
2012-10-15 03:41:17 +00:00
< / div >
< div class = "form-row clearfix cvc" >
< label > CVC:< / label >
2012-10-18 13:04:22 +00:00
< input id = "card_CVC" type = "text" size = "4" autocomplete = "off" class = "card-cvc" / > < span id = "cvc_help" > (what is this?)< / span >
< div id = "cvc_answer" > < img src = "/static/images/cvcimage.jpeg" alt = "a typical credit card with CVC" > For most cards, this is a 3-digit number at the end of the signature strip on the back. For American Express, it's a four-digit number in small print on the front.< / div >
2012-10-15 03:41:17 +00:00
< / div >
< div class = "form-row clearfix initial_values" >
< label > Expiration:< / label >
< input id = "card_ExpiryMonth" type = "text" size = "2" value = "MM" class = "card-expiry-month" / >
< input id = "card_ExpiryYear" type = "text" size = "4" value = "YYYY" class = "card-expiry-year" / >
< / div >
< div class = "form-row clearfix" >
< label > Name:< / label >
< input id = "card_Name" type = "text" class = "address" / >
< / div >
< div class = "form-row clearfix" >
< label > State/Province :< / label >
< input id = "card_AddressState" type = "text" class = "address" / >
< / div >
< div class = "form-row clearfix" >
< label > ZIP/Postal Code:< / label >
< input id = "card_AddressZip" type = "text" class = "address" / >
< / div >
< div class = "form-row clearfix" >
< label > Country:< / label >
< input id = "card_AddressCountry" type = "text" class = "address" / >
< / div >
< / div >
< div class = "payment-errors" > < / div >
2012-11-27 18:32:25 +00:00
< input id = "cc_submit" type = "submit" class = "submit-button loader-gif" value = "Save Credit Card" / >
2012-10-15 03:41:17 +00:00
< / form >
< / div >
< / div >
2012-10-14 19:31:18 +00:00
< h2 > Other Account Management Tools < / h2 >
< ul >
< li > Want to < a href = "{% url auth_password_change %}" > change your password< / a > ?< / li >
2013-03-13 01:25:39 +00:00
< li > ... or < a href = "{% url notification_notice_settings %}" > manage your contact preferences< / a > ?< / li >
< li > ... or < a href = "{% url email_change %}" > change your email address< / a > ?< / li >
2013-07-23 16:23:04 +00:00
< li > ... or < a href = "{% url regluit.frontend.views.edit_user %}" > change your username< / a > ?< / li >
< li > ... or < a href = "{% url marc_config %}" > change your MARC record preferences< / a > ?< / li >
2013-05-31 21:15:22 +00:00
< li > ... or < a href = "{% url kindle_config %}" > add or change a Send-to-Kindle email< / a > ?< / li >
2012-10-14 19:31:18 +00:00
< / ul >
{% endblock %}