-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.html
89 lines (77 loc) · 3.58 KB
/
menu.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
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Al-cashier Menu</title>
<link rel="stylesheet" href="./css/libraries/all.min.css">
<link rel="stylesheet" href="./css/libraries/bootstrap.rtl.min.css">
<link rel="stylesheet" href="./css/master.css">
<script src="./js/layouts/isLoggedIn.js"></script>
<script src="./js/layouts/isAdmin.js"></script>
<script src="./js/layouts/includeHTML.js"></script>
<script>
includeHTML('./components/navbar.html', 'nav', true);
const path = 'menu';
</script>
</head>
<body id="menu" class="">
<!-- start navbar -->
<nav class="navbar p-0 sticky-top"></nav>
<!-- end navbar -->
<!-- start menu add and edit -->
<div class="container">
<main class="menu row m-0 justify-content-between">
<section class="categories overflow-x-auto mt-2 p-0 col-12 d-flex">
<div id="categories-container" class="d-flex"></div>
<div id="add-category-button"
class="add-category rounded m-3 ms-0 overflow-hidden d-flex justify-content-center align-items-center"
role="button">
<div class="category-button">
<i class="fa-regular fa-square-plus"></i>
<span class="ms-2 text-nowrap overflow-hidden" data-i18n="add-title"></span>
</div>
</div>
</section>
<section class="category-items mt-3 px-0 col-12">
<div id="items-container" class="row pb-3 g-3"></div>
</section>
</main>
</div>
<!-- end menu add and edit -->
<!-- start add category modal -->
<div id="category-modal" class="modal-overlay position-absolute w-100 h-100 top-0 left-0">
<form class="add-category-modal p-3 top-0 rounded text-center position-relative">
<div id="close-category-button" class="close-modal position-absolute" role="button">
<i class="fa-solid fa-circle-xmark"></i>
</div>
<label for="add-category-input" class="form-label" data-i18n="add-title"></label>
<input id="add-category-input" class="form-control shadow-none text-center" type="text">
<p id="warning-text" class="form-text" data-i18n="alert"></p>
<button id="category-modal-submit" class="rounded border-0" data-i18n="add-button" type="submit"></button>
</form>
</div>
<!-- end add category modal -->
<!-- start edit category modal -->
<div id="edit-modal" class="modal-overlay position-absolute w-100 h-100 top-0 left-0">
<form class="add-category-modal p-3 top-0 rounded text-center position-relative">
<div id="close-edit-button" class="close-modal position-absolute" role="button">
<i class="fa-solid fa-circle-xmark"></i>
</div>
<label for="edit-modal-input" class="form-label" data-i18n="edit-title"></label>
<input id="edit-modal-input" class="form-control shadow-none text-center" type="text">
<p id="warning-edit-text" class="form-text" data-i18n="alert"></p>
<button id="edit-modal-submit" class="rounded border-0" data-i18n="edit-button" type="submit"></button>
</form>
</div>
<!-- end edit category modal -->
<script src="./js/libraries/all.min.js"></script>
<script src="./js/libraries/bootstrap.bundle.min.js"></script>
<script src="./js/libraries/i18next.umd.min.js"></script>
<script type="module" src="./js/menu.js"></script>
<script type="module" src="./js/layouts/slider.js"></script>
<script type="module" src="./js/layouts/mode.js"></script>
<script type="module" src="./js/i18n/i18next.js"></script>
<script src="./js/layouts/notification.js"></script>
</body>
</html>