2015-04-28 03:24:02 +00:00
{% extends 'basedocumentation.html' %}
2017-12-12 18:26:01 +00:00
{% load sass_tags %}
2016-05-11 14:41:50 +00:00
2012-10-14 19:31:18 +00:00
{% 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 }}
2017-12-12 18:26:01 +00:00
< link type = "text/css" rel = "stylesheet" href = "{% sass_src 'scss/pledge.scss' %}" / >
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 %}
2014-12-18 04:42:37 +00:00
{% if user.profile.last_transaction %}
{% if user.profile.last_transaction.status == 'Error' or user.profile.last_transaction.status == 'Failed' or not user.profile.last_transaction.status %}
< h2 id = "your_payment_info" > Incomplete Transaction< / h2 >
2015-04-28 03:24:02 +00:00
You can complete your last transaction by < a href = "{% url 'fund' user.profile.last_transaction.id %}" > clicking here< / a > .
2014-12-18 04:42:37 +00:00
{% endif %}
{% endif %}
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 >
2014-12-18 04:42:37 +00:00
< h2 style = "margin-top:8em" > Your Pledges< / h2 >
< dl >
{% for transaction in request.user.profile.pledges %}
2017-10-28 22:33:58 +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 >
2014-12-18 04:42:37 +00:00
< dd > < div class = "modify_notification" >
{% include "trans_summary.html" %}
< / div > < / dd >
{% empty %}
< dt > You don't have any active pledges. < / dt >
{% endfor %}
< / dl >
2012-10-14 19:31:18 +00:00
< h2 > Other Account Management Tools < / h2 >
< ul >
2017-09-22 20:02:43 +00:00
< li > Want to < a href = "{% url 'libraryauth_password_change' %}" > change your password< / a > ?< / li >
2015-04-28 03:24:02 +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 >
2016-07-27 17:02:47 +00:00
< li > ... or < a href = "{% url 'edit_user' %}" > change your username< / a > ?< / li >
2015-04-28 03:24:02 +00:00
< li > ... or < a href = "{% url 'marc_config' %}" > change your MARC record preferences< / a > ?< / li >
< 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 %}