-
Notifications
You must be signed in to change notification settings - Fork 0
/
addProduct.html
152 lines (152 loc) · 5.53 KB
/
addProduct.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
<!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" />
<meta name="description" content="Dashboard - Edit and delete products" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400&family=Montserrat:wght@400;500;600;700&family=MuseoModerno:wght@300&display=swap"
rel="stylesheet"
/>
<title>Add product - amenity.</title>
</head>
<body class="d-flex flex-column min-vh-100">
<header class="menu fixed-top container-fluid"></header>
<main>
<div
class="modal fade"
id="exampleModal"
tabindex="-1"
aria-labelledby="exampleModalLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Are you sure?</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-primary"
data-bs-dismiss="modal"
>
Close
</button>
<button type="button" class="btn btn-danger logoutBtn">
Log out
</button>
</div>
</div>
</div>
</div>
<div class="container edit_container">
<div class="row">
<div class="edit_header col-sm-12">
<h1>Add product</h1>
</div>
<div class="alert col-sm-12"></div>
<div class="form_container col-sm-6">
<form class="addForm">
<div class="mb-3">
<label for="titleInput" class="form-label">Title</label>
<input type="text" class="form-control" id="titleInput" />
</div>
<div class="mb-3">
<label for="priceInput" class="form-label">Price</label>
<input type="text" class="form-control" id="priceInput" />
</div>
<div class="mb-3">
<label for="descriptionInput" class="form-label"
>Description</label
>
<textarea
class="form-control"
rows="3"
id="descriptionInput"
></textarea>
</div>
<div class="mb-3">
<label for="imageInput" class="form-label">Image URL</label>
<input type="text" class="form-control" id="imageInput" />
</div>
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value=""
id="defaultCheck1"
/>
<label class="form-check-label" for="defaultCheck1">
Featured product
</label>
</div>
<button type="submit" class="btn btn-primary submitBtn">
Add product
</button>
</form>
</div>
</div>
</div>
</main>
<footer class="mt-auto container-fluid">
<div class="footer__container row">
<div class="SoMe_container col-lg-4 col-sm-12">
<div>
<img
class="SoMe facebook"
src="./img/facebook.svg"
alt="facebook"
/>
</div>
<div>
<img class="SoMe twitter" src="./img/twitter.svg" alt="twitter" />
</div>
<div>
<img class="SoMe insta" src="./img/instagram.svg" alt="instagram" />
</div>
</div>
<div class="contact__container col-lg-4 col-sm-12">
<div class="contact__item">
<img src="./img/phone.svg" alt="phonenumber" /> +47 12345678
</div>
<div class="contact__item">
<img src="./img/mail.svg" alt="email address" /> post@amenity.com
</div>
<div class="contact__item">
<img src="./img/compass.svg" alt="location" /> Oslogata 10 0850 Oslo
</div>
</div>
<div class="copyright__container col-lg-4 col-sm-12">
<p>Martin Bolsønes © 2021</p>
<p>made for educational purposes</p>
</div>
</div>
</footer>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
<script type="module" src="./js/libs/routeGuard.js"></script>
<script type="module" src="./js/components/createMenu.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script type="module" src="./js/addProduct.js"></script>
</body>
</html>