-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht-shirt.html
185 lines (181 loc) · 11.2 KB
/
t-shirt.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<!-- BOOTSTRAP 5 CSS STYLESHEET LINK -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<title>Order Details</title>
</head>
<body>
<div class="container" style="padding: 1rem">
<div class="row">
<div class="col">
<div class="card bg-info" style="width: 300px; margin-bottom: 1rem">
<img src="./t2.JPG" class="card-img-top" alt="tshirt" height="300px">
<div class="card-body">
<h1 class="display-6">My Order</h1>
</div>
</div>
</div>
<div class="col">
<div class="card border-info">
<form class="needs-validation" name="myForm" enctype="multipart/form-data" method="put" onsubmit="return formValidation()" novalidate>
<div class="card-header bg-transparent border-info">
<h1 class="display-6">Place Order</h1>
</div>
<div class="card-body">
<div class="form-floating mb-3 form-inputs">
<input type="text" class="form-control" id="tagline" name="tagline" placeholder="tagline" required>
<label for="tagline">Tagline</label>
<div class="invalid-feedback">
Please provide a valid tagline
</div>
</div>
<div class="mb-3">
<p>
<strong>Choose shirt color:</strong>
</p>
<div class="form-check">
<input class="form-check-input" type="radio" name="color" id="red" value="Red" required>
<label class="form-check-label" for="red">
yellow
</label>
<div class="invalid-feedback"></div>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="color" id="green" value="Green" required>
<label class="form-check-label" for="green">
black
</label>
<div class="invalid-feedback"></div>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="color" id="blue" value="Blue" required>
<label class="form-check-label" for="blue">
pink
</label>
<div class="invalid-feedback">
select a valid color
</div>
</div>
</div>
<div class="mb-3">
<select class="form-select" style="box-shadow: none" aria-label="Default select example" name="size" id="size" required>
<option value="" disabled selected>Select a size</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
</select>
<div class="invalid-feedback">
select a valid size
</div>
</div>
<div class="mb-3">
<select class="form-select" style="box-shadow: none" aria-label="Default select example" name="quantity" id="quantity" required>
<option value="" disabled selected>Select a quantity</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<div class="invalid-feedback">
select a valid quantity
</div>
</div>
<div class="mb-3">
<label for="orderdate"><strong>Order date:</strong></label>
<input type="date" id="orderdate" name="orderdate">
<div class="invalid-feedback">
Please provide a valid order date
</div>
</div>
<div class="form-floating mb-3 form-inputs">
<input type="text" class="form-control" id="name" name="name" placeholder="name" required>
<label for="name">Name</label>
<div class="invalid-feedback">
provide a valid name
</div>
</div>
<div class="form-floating mb-3 form-inputs">
<input type="tel" class="form-control" id="number" name="number" placeholder="number" required>
<label for="number">Mobile Number</label>
<div class="invalid-feedback">
provide a valid mobile number
</div>
</div>
<div class="form-floating mb-3 form-inputs">
<textarea class="form-control" style="height: 100px" id="address" name="address" placeholder="address" required></textarea>
<label for="address">Address</label>
<div class="invalid-feedback">
Please provide a valid address
</div>
</div>
<div class="mb-3">
<p>
<strong>Choose payment options:</strong>
</p>
<div class="form-check">
<input class="form-check-input" type="radio" name="pay" id="card" value="Card" required>
<label class="form-check-label" for="card">
Cash
</label>
<div class="invalid-feedback"></div>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="pay" id="paytm" value="Paytm" required>
<label class="form-check-label" for="paytm">
credit
</label>
<div class="invalid-feedback"></div>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="pay" id="cash" value="Cash" required>
<label class="form-check-label" for="cash">
paytm
</label>
<div class="invalid-feedback">
select a valid payment method
</div>
</div>
</div>
<p class="lead">
<strong>Total amount:</strong> <mark>₹ 700</mark>
</p>
</div>
<div class="card-footer bg-transparent border-info">
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
<button class="btn btn-outline-success rounded-pill" name="submit" type="submit">Place Order</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
<!-- BOOTSTRAP 5 JS BUNDLE LINK -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script src="js/formValidation.js"></script>
<script>
(function () {
'use strict'
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.querySelectorAll('.needs-validation')
// Loop over them and prevent submission
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
}
form.classList.add('was-validated')
}, false)
})
})()
</script>
</html>