forked from divanov11/ecom_steps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{% extends 'store/main.html' %} | ||
{% load static %} | ||
{% block content %} | ||
<div class="row"> | ||
<div class="col-lg-6"> | ||
<div class="box-element" id="form-wrapper"> | ||
<form id="form"> | ||
<div id="user-info"> | ||
<div class="form-field"> | ||
<input required class="form-control" type="text" name="name" placeholder="Name.."> | ||
</div> | ||
<div class="form-field"> | ||
<input required class="form-control" type="email" name="email" placeholder="Email.."> | ||
</div> | ||
</div> | ||
|
||
<div id="shipping-info"> | ||
<hr> | ||
<p>Shipping Information:</p> | ||
<hr> | ||
<div class="form-field"> | ||
<input class="form-control" type="text" name="address" placeholder="Address.."> | ||
</div> | ||
<div class="form-field"> | ||
<input class="form-control" type="text" name="city" placeholder="City.."> | ||
</div> | ||
<div class="form-field"> | ||
<input class="form-control" type="text" name="state" placeholder="State.."> | ||
</div> | ||
<div class="form-field"> | ||
<input class="form-control" type="text" name="zipcode" placeholder="Zip code.."> | ||
</div> | ||
<div class="form-field"> | ||
<input class="form-control" type="text" name="country" placeholder="Zip code.."> | ||
</div> | ||
</div> | ||
|
||
<hr> | ||
<input id="form-button" class="btn btn-success btn-block" type="submit" value="Continue"> | ||
</form> | ||
</div> | ||
|
||
<br> | ||
<div class="box-element hidden" id="payment-info"> | ||
<small>Paypal Options</small> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="col-lg-6"> | ||
<div class="box-element"> | ||
<a class="btn btn-outline-dark" href="{% url 'cart' %}">← Back to Cart</a> | ||
<hr> | ||
<h3>Order Summary</h3> | ||
<hr> | ||
{% for item in items %} | ||
<div class="cart-row"> | ||
<div style="flex:2"><img class="row-image" src="{{item.product.imageURL}}"></div> | ||
<div style="flex:2"><p>{{item.product.name}}</p></div> | ||
<div style="flex:1"><p>${{item.product.price|floatformat:2}}</p></div> | ||
<div style="flex:1"><p>x{{item.quantity}}</p></div> | ||
</div> | ||
{% endfor %} | ||
<h5>Items: {{order.get_cart_items}}</h5> | ||
<h5>Total: ${{order.get_cart_total|floatformat:2}}</h5> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock content %} |