-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddRecipe.html
More file actions
121 lines (115 loc) · 6.93 KB
/
addRecipe.html
File metadata and controls
121 lines (115 loc) · 6.93 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
113
114
115
116
117
118
119
120
121
<html>
<head>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="addRecipe.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Przepiśnik</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Panel główny</a>
</li>
</div>
</div>
</nav>
<div class="fadeInDown">
<div class="container overflow-hidden">
<!-- Stack the columns on mobile by making one full-width and the other half-width -->
<div class="row gx-5">
<div class="col">
<div class="shadow p-3 mb-5 bg-body rounded">
<h2 class="display-3">
Dodaj przepis
</h2>
<form class="needs-validation" id="recipeForm" onsubmit="return false">
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label lead" >Nazwa:</label>
<input type="name" class="form-control" id="recipeName" name="recipeName" required>
<label for="exampleInputEmail1" class="form-label lead">Rodzaj:</label>
<select class="form-select lead" aria-label="Typ dania" name="typeSelect" required>
<option class="lead" value="Sniadanie">Śniadanie</option>
<option class="lead" value="Obiad">Obiad</option>
<option class="lead" value="Kolacja">Kolacja</option>
<option class="lead" value="Deser">Deser</option>
<option class="lead" value="Inne">Inne</option>
</select>
<div class="mb-3">
<label for="exampleFormControlTextarea1" class="form-label lead">Opis przygotowania:</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" name="description" required></textarea>
</div>
<div id="emailHelp" class="form-text">Kropka oznacza kolejny punkt.</div>
</div>
<button id="addRecipeButton" type="submit" class="btn btn-success" >Dodaj przepis</button>
<div id="addRecipeHelp" class="form-text">PAMIĘTAJ DODAĆ PRODUKTY!</div>
</form>
</div>
<div class="shadow p-3 mb-5 bg-body rounded">
<h1 class="lead">
Dodaj produkt
</h1>
<div class="container">
<form id="productForm" onsubmit="return false" class="needs-validation2">
<div class="row">
<div class="col">
<label for="productName" class="form-label lead">Nazwa:</label>
<input type="name" class="form-control" id="productName" name="productName" required>
</div>
<div class="col">
<label for="productCount" class="form-label lead">Tag:</label>
<input type="name" class="form-control" id="productTag" name="productTag" required>
<div id="tagHelp" class="form-text">Przykład: milk, chesse itd. </div>
</div>
<div class="col">
<label for="productCount" class="form-label lead">Ilość:</label>
<input type="name" class="form-control" id="productCount" name="productCount" required>
</div>
<div class="col">
<label for="exampleInputEmail1" class="form-label lead">Typ:</label>
<select class="form-select" aria-label="Typ wagi produktu" name="productType" required>
<option class="lead" selected>Wybierz typ wagi</option>
<option class="lead" value="SZT">SZT (Sztuki)</option>
<option class="lead" value="KG">KG (Kilogramy)</option>
<option class="lead" value="L">L (Litry)</option>
</select>
</div>
<div class="col">
<div><label for="exampleInputEmail1" class="form-label lead">Akcje:</label></div>
<button id="addProductButton" type="submit" class="btn btn-warning">Dodaj produkt</button>
</div>
</div>
</form>
</div>
</div>
<div class="shadow p-3 mb-5 bg-body rounded">
<div class="col">
<table id="productTable" class="table table-hover table-borderless table-light ">
<thead>
<tr>
<th class="lead" scope="col">Nazwa Produktu</th>
<th class="lead" scope="col">Tag</th>
<th class="lead" scope="col">Ilość</th>
<th class="lead" scope="col">Typ</th>
<th class="lead" scope="col">Akcje</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="addRecipe.js"></script>
</body>
</html>