mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix supporter card change
This commit is contained in:
parent
d2f977635c
commit
7363215ea7
3 changed files with 15 additions and 52 deletions
|
@ -418,7 +418,7 @@ input {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-container">
|
||||
<div class="form-container" style="margin-left: auto; margin-right: auto;">
|
||||
<div class="field-container" style="display: none">
|
||||
<label for="name">Name</label>
|
||||
<input id="name" maxlength="20" type="text" type="input-Area">
|
||||
|
|
|
@ -1,45 +1,13 @@
|
|||
<h2>Change Credit Card</h2>
|
||||
<p>This allows you to change your currently stored credit card. You will be charged at the regular monthly cycle.</p>
|
||||
<p>This allows you to change your currently stored credit card. You will be charged at the regular monthly cycle.</p>
|
||||
|
||||
<div>
|
||||
<div id="plan_error" class="alert alert-block alert-error" style="display:none"></div>
|
||||
<form id="upgradeForm" method="POST" action="/settings/update_card">
|
||||
<input type="hidden" value="<%= csrf_token %>" name="csrf_token">
|
||||
<input type="hidden" value="supporter" name="plan_type">
|
||||
<input id="stripe_token" name="stripe_token" type="hidden" value="<%= params[:stripe_token] %>">
|
||||
<div id="plan_error" class="alert alert-block alert-error" style="display:none"></div>
|
||||
<form id="upgradeForm" method="POST" action="/settings/update_card">
|
||||
<%== csrf_token_input_html %>
|
||||
<input type="hidden" value="supporter" name="plan_type">
|
||||
<input id="stripe_token" name="stripe_token" type="hidden" value="<%= params[:stripe_token] %>">
|
||||
<%== erb :'_card'%>
|
||||
</form>
|
||||
<a href="/" class="btn-Action" onclick="$('#upgradeForm').submit(); return false">Update Card</a>
|
||||
|
||||
<div class="credit-card-input no-js" id="skeuocard" style="margin-left: auto; margin-right: auto; margin-bottom: 20px">
|
||||
<p class="no-support-warning"></p>
|
||||
<label for="cc_type">Card Type</label>
|
||||
<select name="cc_type">
|
||||
<option value="">...</option>
|
||||
<option value="visa">Visa</option>
|
||||
<option value="discover">Discover</option>
|
||||
<option value="mastercard">MasterCard</option>
|
||||
<option value="maestro">Maestro</option>
|
||||
<option value="jcb">JCB</option>
|
||||
<option value="unionpay">China UnionPay</option>
|
||||
<option value="amex">American Express</option>
|
||||
<option value="dinersclubintl">Diners Club</option>
|
||||
</select>
|
||||
<label for="cc_number">Card Number</label>
|
||||
<input type="text" name="cc_number" id="cc_number" placeholder="XXXX XXXX XXXX XXXX" maxlength="19" size="19">
|
||||
<label for="cc_exp_month">Expiration Month</label>
|
||||
<input type="text" name="cc_exp_month" id="cc_exp_month" placeholder="00">
|
||||
<label for="cc_exp_year">Expiration Year</label>
|
||||
<input type="text" name="cc_exp_year" id="cc_exp_year" placeholder="00">
|
||||
<label for="cc_name">Cardholder's Name</label>
|
||||
<input type="text" name="cc_name" id="cc_name" placeholder="John Doe">
|
||||
<label for="cc_cvc">Card Validation Code</label>
|
||||
<input type="text" name="cc_cvc" id="cc_cvc" placeholder="123" maxlength="3" size="3">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<a href="/" class="btn-Action" onclick="$('#upgradeForm').submit(); return false">Update Card</a>
|
||||
</div>
|
||||
|
||||
<%== erb :'supporter/_signupcode', layout: false %>
|
||||
|
||||
<script>
|
||||
card = new Skeuocard($('#skeuocard'))
|
||||
</script>
|
||||
<%== erb :'supporter/_signupcode', layout: false %>
|
|
@ -12,17 +12,12 @@
|
|||
You currently have the <strong>Free Plan (<%= current_site.maximum_space.to_space_pretty %>)</strong>.<br>Want to get more space and help Neocities? Become a supporter!
|
||||
</p>
|
||||
<a href="/supporter">Supporter Info</a>
|
||||
<% if parent_site.stripe_customer_id || parent_site.paypal_profile_id %>
|
||||
<br>
|
||||
<a href="/settings/invoices">Generated Invoices</a>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% if parent_site.stripe_customer_id || parent_site.paypal_profile_id %>
|
||||
<br>
|
||||
<a href="/settings/invoices">Generated Invoices</a>
|
||||
<% end %>
|
||||
|
||||
<% if parent_site.stripe_customer_id || parent_site.paypal_profile_id %>
|
||||
<br>
|
||||
<a href="/settings/invoices">Generated Invoices</a>
|
||||
<% end %>
|
||||
|
||||
<div class="modal hide" id="endSupporterConfirm" tabindex="-1" role="dialog" aria-labelledby="endSupporterConfirmLabel" aria-hidden="true">
|
||||
<form method="POST" action="/supporter/end">
|
||||
|
|
Loading…
Add table
Reference in a new issue