-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment_source_address_new.html
82 lines (80 loc) · 3.2 KB
/
payment_source_address_new.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{% extends "base.html" %}
{% block content %}
<span class="side-menu-value" data-side-menu="payment_sources-page"></span>
<h3>Add billing address</h3>
<form action="{{ payment_source_address_new_url }}" method="post" id="ReChargeForm_customer">
<input type="hidden" name="redirect_url" value="{{ payment_source_list_url }}">
<fieldset>
<div class="grid">
<div class="grid__item medium-up--one-half">
<label for="billing_first_name">First name</label>
<input type="text" name="billing_first_name" id="billing_first_name">
</div>
<div class="grid__item medium-up--one-half">
<label for="billing_last_name">Last name</label>
<input type="text" name="billing_last_name" id="billing_last_name">
</div>
</div>
<div class="grid">
<div class="grid__item medium-up--one-full">
<label for="billing_address1">Address 1</label>
<input type="text" name="billing_address1" id="billing_address1">
</div>
</div>
<div class="grid">
<div class="grid__item medium-up--one-full">
<label for="billing_address2">Address 2</label>
<input type="text" name="billing_address2" id="billing_address2">
</div>
</div>
<div class="grid">
<div class="grid__item medium-up--one-full">
<label for="billing_company">Company</label>
<input type="text" name="billing_company" id="billing_company">
</div>
</div>
<div class="grid">
<div class="grid__item medium-up--one-half">
<label for="billing_city">City</label>
<input type="text" name="billing_city" id="billing_city">
</div>
<div class="grid__item medium-up--one-half">
<label for="country">Country</label>
<select name="billing_country" id="country" onchange="ReCharge.Forms.updateProvinces(this);">
{% for country in shipping_countries %}
<option value="{{ country.name }}">{{ country.name }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="grid">
<div class="grid__item medium-up--one-half">
<label for="billing_zip">Zip/postal code</label>
<input type="text" name="billing_zip" id="billing_zip">
</div>
<div class="grid__item medium-up--one-half">
<label for="province">State/province</label>
<input type="text" name="billing_province" id="province">
<select id="province_selector" onchange="ReCharge.Forms.updateProvinceInput(this);" style="display: none;"></select>
</div>
</div>
<div class="grid">
<div class="grid__item medium-up--one-half">
<label for="billing_phone">Phone</label>
<input type="text" name="billing_phone" id="billing_phone">
</div>
</div>
</fieldset>
<br>
<p>
<button type="submit" class="btn">Save</button>
</p>
</form>
<script>
{% if shipping_countries %}
window.Countries = {{ shipping_countries | json }};
ReCharge.Forms.buildCountries();
ReCharge.Forms.updateProvinces(document.querySelector('#country'));
{% endif %}
</script>
{% endblock %}