change orders to order and delete unused
This commit is contained in:
parent
037df6b9bc
commit
ffcf6e6ba5
|
@ -60,7 +60,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<form id="checkout_form" action="orders" method="post">
|
<form id="checkout_form" action="order/" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ checkout_form.as_p }}
|
{{ checkout_form.as_p }}
|
||||||
<input type="submit" value="Order" class="btn btn-success" role="button"/>
|
<input type="submit" value="Order" class="btn btn-success" role="button"/>
|
||||||
|
|
|
@ -13,9 +13,6 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a href="{% url 'login' %}">LOGIN</a></li>
|
<li><a href="{% url 'login' %}">LOGIN</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if checkout %}
|
|
||||||
<!-- bewusst leer um dropdown in checkout auszublenden -->
|
|
||||||
{% else %}
|
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
{% if article_view %}
|
{% if article_view %}
|
||||||
<form id="currency" action="" method="POST" novalidate>
|
<form id="currency" action="" method="POST" novalidate>
|
||||||
|
@ -24,7 +21,6 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{% extends "webshop/base.html" %}
|
{% extends "webshop/base.html" %}
|
||||||
{% load customfilters %}
|
{% load customfilters %}
|
||||||
{% block section_title %}Order{% endblock %}
|
{% block section_title %}Order{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1> Your order was submitted. </h1>
|
<h1> Your order was submitted. </h1>
|
||||||
<h3> Thank you for Purchase. </h3>
|
<h3> Thank you for Purchase. </h3>
|
|
@ -23,7 +23,7 @@ urlpatterns = [
|
||||||
url(r'^cart/checkout/$',
|
url(r'^cart/checkout/$',
|
||||||
views.checkout,
|
views.checkout,
|
||||||
name='checkout'),
|
name='checkout'),
|
||||||
url(r'^orders$',
|
url(r'^order/$',
|
||||||
views.orders,
|
views.order,
|
||||||
name='orders'),
|
name='order'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -313,7 +313,7 @@ def checkout(request):
|
||||||
currencies_form = CurrenciesForm
|
currencies_form = CurrenciesForm
|
||||||
amount_form = CartForm
|
amount_form = CartForm
|
||||||
rate = ExchangeRate
|
rate = ExchangeRate
|
||||||
article_view = True
|
article_view = False
|
||||||
message = ""
|
message = ""
|
||||||
cart_position_list = []
|
cart_position_list = []
|
||||||
totalprice_list = []
|
totalprice_list = []
|
||||||
|
@ -394,7 +394,7 @@ def checkout(request):
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
def orders(request):
|
def order(request):
|
||||||
return render(request, 'webshop/orders.html',
|
return render(request, 'webshop/orders.html',
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue