-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcart.html
140 lines (139 loc) · 4.56 KB
/
cart.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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Orinoco site de commerce en ligne" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="StyleSheet" href="public/css/purge/bootstrap.min.css" type="text/css" />
<link rel="StyleSheet" href="public/css/purge/style.min.css" type="text/css" />
<title>Orinoco - Panier</title>
<script src="public/scripts/global.js"></script>
<script src="public/scripts/cart.js" async></script>
</head>
<body>
<!-- Header -->
<header class="bg-primary">
<nav class="container navbar navbar-light">
<a href="./">
<img
class="img-fluid d-inline-block align-top ms-md-3 mb-2 me-5"
src="public/images/logo.png"
srcset="public/images/logo-small.png 1x, public/images/logo.png 2x"
width="180"
height="81"
alt="Logo Orinoco"
/>
</a>
<a class="justify-content-end text-body text-decoration-none mb-0 me-0 me-md-3 h3" href="cart.html"
>Panier</a
>
</nav>
</header>
<!-- Main -->
<main class="container my-4">
<form id="needs-validation" novalidate>
<div class="row row-cols-1 g-4 justify-content-center">
<div id="noItem" class="col col-lg-9 col-xl-8 col-xxl-7 d-none">
<div class="card text-dark text-decoration-none shadow text-center">
<div class="card-body">
<h5 class="card-title" id="order">Il n'y a pas d'article dans le panier</h5>
</div>
</div>
</div>
<div id="cart" class="col col-lg-9 col-xl-8 col-xxl-7 d-none">
<div class="card text-dark text-decoration-none shadow text-end">
<div class="card-body">
<table class="table mb-0 mb-md-3">
<thead>
<tr class="d-none d-md-table-row">
<th class="text-start">Produit</th>
<th class="text-start">Option</th>
<th>Quantité</th>
<th>Prix unitaire</th>
<th>Prix total</th>
<th></th>
</tr>
</thead>
<tbody id="itemsCart">
<!-- Cart content -->
</tbody>
</table>
<h6 class="card-title">
Montant total de la commande :
<span id="totalPrice"></span>
</h6>
</div>
</div>
</div>
<div id="form" class="col col-lg-9 col-xl-8 col-xxl-7 d-none">
<div class="card text-dark text-decoration-none shadow">
<div class="card-body">
<div class="row g-3">
<div class="col-md-6">
<label for="lastName" class="form-label">Nom</label>
<input
type="text"
class="form-control"
id="lastName"
pattern="(([a-zA-ZÀ-ÿ]+[\s\-]{1}[a-zA-ZÀ-ÿ]+)|([a-zA-ZÀ-ÿ]+))"
placeholder="Nom"
required
/>
</div>
<div class="col-md-6">
<label for="firstName" class="form-label">Prénom</label>
<input
type="text"
class="form-control"
id="firstName"
pattern="(([a-zA-ZÀ-ÿ]+[\s\-]{1}[a-zA-ZÀ-ÿ]+)|([a-zA-ZÀ-ÿ]+))"
placeholder="Prénom"
required
/>
</div>
<div class="col-md-9">
<label for="inputEmail" class="form-label">Email</label>
<input
type="email"
class="form-control"
id="inputEmail"
pattern="[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([_\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})"
placeholder="[email protected]"
required
/>
</div>
<div class="col-md-6">
<label for="inputAddress" class="form-label">Adresse</label>
<input
type="text"
class="form-control"
id="inputAddress"
pattern="(([a-zA-ZÀ-ÿ0-9_]+[\s\-][a-zA-ZÀ-ÿ0-9_]+)|([a-zA-ZÀ-ÿ0-9_]+)){1,10}"
placeholder="Adresse"
required
/>
</div>
<div class="col-md-6">
<label for="inputCity" class="form-label">Ville</label>
<input
type="text"
class="form-control"
id="inputCity"
pattern="(([a-zA-ZÀ-ÿ]+[\s\-]{1}[a-zA-ZÀ-ÿ]+)|([a-zA-ZÀ-ÿ]+)){1,10}"
placeholder="Ville"
required
/>
</div>
</div>
</div>
</div>
</div>
<div class="col text-center">
<button class="btn btn-primary d-none" type="submit" id="sendCart">Valider la commande</button>
</div>
</div>
</form>
</main>
</body>
</html>