-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub.html
More file actions
executable file
·72 lines (71 loc) · 2.44 KB
/
github.html
File metadata and controls
executable file
·72 lines (71 loc) · 2.44 KB
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
{%extends 'shop/basic.html'%}
{%css block%}
<style>
.deliver
{
border:2px solid black;
border-radius: 50px;
background-color: darkgrey;
color:black;
}
.deliver:hover
{
background-color: lightgrey;
color: green;
}
</style>
{%endblock%}
{%block body%}
<div class="container">
<div class="col my-4">
<h3 style="text-align: center; margin-bottom: 20px;">Enter Your Details</h3>
<form method="POST" action="{% url 'checkout' %}">{% csrf_token %}
<div class="form-row">
<input type="hidden" id="json" name="json">
<div class="form-group col-md-6">
<label for="name">Name</label>
<input type="name" class="form-control" id="name" name="name" placeholder="Name">
</div>
<div class="form-group col-md-6">
<label for="email">Email</label>
<input type="email" class="form-control" id="email" name="email" placeholder="email">
</div>
</div>
<div class="form-group">
<label for="address1">Address</label>
<input type="text" class="form-control" id="address1" name="address1" placeholder="1234 Main St">
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="city">City</label>
<input type="text" class="form-control" id="city" name="city">
</div>
<div class="form-group col-md-4">
<label for="state">State</label>
<input type="text" class="form-control" id="state" name="state">
</div>
<div class="form-group col-md-2">
<label for="zipcode">Zip Code</label>
<input type="number" class="form-control" id="zipcode" name="zipcode">
</div>
<div class="form-group col-md-2">
<label for="inputZip">Phone Number</label>
<input type="number" class="form-control" id="phone" name="phone">
</div>
</div>
<button class="deliver" type="submit">Deliver Here</button>
</form>
</div>
</div>
<script>
if({{ok}}==1)
{
var list={};
localStorage.setItem('totalitems',0);
localStorage.setItem('allproducts',list);
}
if (window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
</script>
{%endblock%}