|
|
@@ -3,7 +3,7 @@
|
|
3
|
3
|
{% load i18n %}
|
|
4
|
4
|
|
|
5
|
5
|
{% block title %}
|
|
6
|
|
-{% trans "Checkout gateway" %} | {{ block.super }}
|
|
|
6
|
+ {% trans "Checkout gateway" %} | {{ block.super }}
|
|
7
|
7
|
{% endblock %}
|
|
8
|
8
|
|
|
9
|
9
|
{% block checkout-nav %}
|
|
|
@@ -12,53 +12,53 @@
|
|
12
|
12
|
|
|
13
|
13
|
{% block content %}
|
|
14
|
14
|
|
|
15
|
|
-<div class="sub-header">
|
|
16
|
|
- <h2>{% trans "Who are you?" %}</h2>
|
|
17
|
|
-</div>
|
|
|
15
|
+ <div class="sub-header">
|
|
|
16
|
+ <h2>{% trans "Who are you?" %}</h2>
|
|
|
17
|
+ </div>
|
|
18
|
18
|
|
|
19
|
|
-<form action="." method="post" class="form-stacked well well-info">
|
|
20
|
|
- {% csrf_token %}
|
|
21
|
|
- {{ form.non_field_errors }}
|
|
22
|
|
- {% include 'partials/form_field.html' with field=form.username %}
|
|
|
19
|
+ <form action="." method="post" class="form-stacked well well-info">
|
|
|
20
|
+ {% csrf_token %}
|
|
|
21
|
+ {{ form.non_field_errors }}
|
|
|
22
|
+ {% include 'partials/form_field.html' with field=form.username %}
|
|
23
|
23
|
|
|
24
|
|
- <div class="control-group">
|
|
25
|
|
- {{ form.options.errors }}
|
|
26
|
|
- <div class="controls">
|
|
27
|
|
- <label class="radio">
|
|
28
|
|
- <input type="radio" id="id_options_1" name="options" value="existing" {% if form.password.errors %}checked="checked"{% endif %} />
|
|
29
|
|
- {% trans "I have an account and my password is" %}:
|
|
30
|
|
- </label>
|
|
|
24
|
+ <div class="control-group">
|
|
|
25
|
+ {{ form.options.errors }}
|
|
|
26
|
+ <div class="controls">
|
|
|
27
|
+ <label class="radio">
|
|
|
28
|
+ <input type="radio" id="id_options_1" name="options" value="existing" {% if form.password.errors %}checked="checked"{% endif %} />
|
|
|
29
|
+ {% trans "I have an account and my password is" %}:
|
|
|
30
|
+ </label>
|
|
|
31
|
+ </div>
|
|
31
|
32
|
</div>
|
|
32
|
|
- </div>
|
|
33
|
33
|
|
|
34
|
|
- <div class="control-group {% for error in form.password.errors %}error{% endfor %}">
|
|
35
|
|
- <div class="controls">
|
|
36
|
|
- {{ form.password }}
|
|
37
|
|
- <small><a href="{% url password-reset %}">{% trans "Get a password reminder" %}</a></small>
|
|
38
|
|
- {% for error in form.password.errors %}
|
|
39
|
|
- <span class="help-block">
|
|
40
|
|
- {{ error }}
|
|
41
|
|
- </span>
|
|
42
|
|
- {% endfor %}
|
|
|
34
|
+ <div class="control-group {% for error in form.password.errors %}error{% endfor %}">
|
|
|
35
|
+ <div class="controls">
|
|
|
36
|
+ {{ form.password }}
|
|
|
37
|
+ <small><a href="{% url password-reset %}">{% trans "Get a password reminder" %}</a></small>
|
|
|
38
|
+ {% for error in form.password.errors %}
|
|
|
39
|
+ <span class="help-block">
|
|
|
40
|
+ {{ error }}
|
|
|
41
|
+ </span>
|
|
|
42
|
+ {% endfor %}
|
|
|
43
|
+ </div>
|
|
43
|
44
|
</div>
|
|
44
|
|
- </div>
|
|
45
|
45
|
|
|
46
|
|
- <div class="control-group">
|
|
47
|
|
- <div class="controls">
|
|
48
|
|
- <label class="radio">
|
|
49
|
|
- <input type="radio" id="id_options_0" name="options" value="new" {% if not form.password.errors %}checked="checked"{% endif %} />
|
|
50
|
|
- {% trans "I don't want to create an account" %}:
|
|
51
|
|
- </label>
|
|
|
46
|
+ <div class="control-group">
|
|
|
47
|
+ <div class="controls">
|
|
|
48
|
+ <label class="radio">
|
|
|
49
|
+ <input type="radio" id="id_options_0" name="options" value="new" {% if not form.password.errors %}checked="checked"{% endif %} />
|
|
|
50
|
+ {% trans "I don't have an account" %}:
|
|
|
51
|
+ </label>
|
|
|
52
|
+ </div>
|
|
52
|
53
|
</div>
|
|
53
|
|
- </div>
|
|
54
|
54
|
|
|
55
|
|
- <div class="form-actions">
|
|
56
|
|
- <button type="submit" class="btn btn-large btn-primary">{% trans "Continue" %}</button>
|
|
57
|
|
- </div>
|
|
58
|
|
-</form>
|
|
|
55
|
+ <div class="form-actions">
|
|
|
56
|
+ <button type="submit" class="btn btn-large btn-primary">{% trans "Continue" %}</button>
|
|
|
57
|
+ </div>
|
|
|
58
|
+ </form>
|
|
59
|
59
|
|
|
60
|
60
|
{% endblock content %}
|
|
61
|
61
|
|
|
62
|
62
|
{% block onbodyload %}
|
|
63
|
|
-oscar.checkout.gateway.init();
|
|
|
63
|
+ oscar.checkout.gateway.init();
|
|
64
|
64
|
{% endblock %}
|