Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
112 lines (109 loc) · 3.34 KB
/
Copy pathindex.html
File metadata and controls
112 lines (109 loc) · 3.34 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<link
rel="stylesheet"
href=" https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
/>
</head>
<body>
<div class="container mt-5 text-center">
<h2 class="text-center">Add A Recipe</h2>
<div class="row">
<div class="col-6">
<div class="input-group input-group-sm mb-3">
<span class="input-group-text" id="inputGroup-sizing-sm"
>Title</span
>
<input
type="text"
class="form-control title-js"
aria-label="Sizing example input"
aria-describedby="inputGroup-sizing-sm"
/>
</div>
</div>
<div class="col-6">
<div class="input-group input-group-sm mb-3">
<span class="input-group-text">Recipe</span>
<input
type="text"
class="form-control recipe-js"
aria-label="Sizing example input"
aria-describedby="inputGroup-sizing-sm"
/>
</div>
</div>
</div>
<button type="button" class="btn btn-outline-primary add-js">
Add Recipe
</button>
</div>
<div class="container-fluid">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Title</th>
<th scope="col">Recipe</th>
<th scope="col">Edit</th>
<th scope="col">Delete</th>
</tr>
</thead>
<tbody class="table-js"></tbody>
</table>
</div>
<div
class="modal"
id="recipeModal"
tabindex="-1"
aria-labelledby="recipeModalLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="recipeModalLabel">Add Recipe</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<div class="mb-3">
<label for="title" class="form-label">Title:</label>
<input
type="text"
class="form-control"
id="title"
placeholder="Enter title"
/>
</div>
<div class="mb-3">
<label for="recipe" class="form-label">Recipe:</label>
<input
type="text"
class="form-control"
id="recipe"
placeholder="Enter recipe"
/>
</div>
</div>
<div class="modal-footer">
<button type="sumbit" class="btn btn-primary sumbit-js">
Submit
</button>
</div>
</div>
</div>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js"></script>
<script src="./index.js"></script>
</html>