main
Last change
on this file was d659b83, checked in by Marko_Gjorgjievski_201136 <marko.gjorgjievski@…>, 2 months ago |
Commiting the whole project
|
-
Property mode
set to
100644
|
File size:
1.7 KB
|
Rev | Line | |
---|
[d659b83] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8">
|
---|
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
---|
| 6 | <title>Add Meal</title>
|
---|
| 7 | <!-- Add Bootstrap CSS link -->
|
---|
| 8 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
|
---|
| 9 | </head>
|
---|
| 10 | <body>
|
---|
| 11 |
|
---|
| 12 | <!-- Navbar using Bootstrap -->
|
---|
| 13 | <div th:replace="appBar"></div>
|
---|
| 14 |
|
---|
| 15 |
|
---|
| 16 | <div class="container mt-4"> <!-- Add Bootstrap container class for spacing -->
|
---|
| 17 |
|
---|
| 18 | <h1>Add Meal</h1>
|
---|
| 19 |
|
---|
| 20 | <form action="/meals/addMeal" method="post" class="needs-validation" novalidate>
|
---|
| 21 | <div class="form-group">
|
---|
| 22 | <label for="name">Name:</label>
|
---|
| 23 | <input type="text" class="form-control" id="name" name="name" required>
|
---|
| 24 | <div class="invalid-feedback">Please enter a name.</div>
|
---|
| 25 | </div>
|
---|
| 26 |
|
---|
| 27 | <div class="form-group">
|
---|
| 28 | <label for="type">Type:</label>
|
---|
| 29 | <select class="form-control" id="type" name="type" required>
|
---|
| 30 | <option value="breakfast">Breakfast</option>
|
---|
| 31 | <option value="lunch">Lunch</option>
|
---|
| 32 | <option value="dinner">Dinner</option>
|
---|
| 33 | <option value="snack">Snack</option>
|
---|
| 34 | </select>
|
---|
| 35 | <div class="invalid-feedback">Please select a type.</div>
|
---|
| 36 | </div>
|
---|
| 37 |
|
---|
| 38 | <button type="submit" class="btn btn-primary">Add Meal</button>
|
---|
| 39 | </form>
|
---|
| 40 |
|
---|
| 41 | </div>
|
---|
| 42 |
|
---|
| 43 | <!-- Add Bootstrap JS and Popper.js for certain Bootstrap features -->
|
---|
| 44 | <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
|
---|
| 45 | <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
|
---|
| 46 | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
|
---|
| 47 |
|
---|
| 48 | </body>
|
---|
| 49 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.