[d24f17c] | 1 | <head>
|
---|
| 2 | <meta charset="UTF-8">
|
---|
| 3 | <title>Customers Form</title>
|
---|
| 4 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
---|
| 5 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
---|
| 6 | </head>
|
---|
| 7 | <form th:method="POST" th:action="@{/customers/add}">
|
---|
| 8 | <div class="mb-3">
|
---|
| 9 | <label for="firstName">First Name</label>
|
---|
| 10 | <input name="firstName" id="firstName" type="text">
|
---|
| 11 | </div>
|
---|
| 12 | <div class="mb-3">
|
---|
| 13 | <label for="lastName">Last Name</label>
|
---|
| 14 | <input name="lastName" id="lastName" type="text">
|
---|
| 15 | </div>
|
---|
| 16 | <div class="mb-3">
|
---|
| 17 | <label for="email">Email</label>
|
---|
| 18 | <input name="email" id="email" type="text">
|
---|
| 19 | </div>
|
---|
| 20 | <div class="mb-3">
|
---|
| 21 | <label for="password">Password</label>
|
---|
| 22 | <input name="password" id="password" type="password">
|
---|
| 23 | </div>
|
---|
| 24 | <div class="mb-3">
|
---|
| 25 | <label for="phone">Phone</label>
|
---|
| 26 | <input name="phone" id="phone" type="text">
|
---|
| 27 | </div>
|
---|
| 28 | <div class="mb-3">
|
---|
| 29 | <label for="address">Address</label>
|
---|
| 30 | <input name="address" id="address" type="text">
|
---|
| 31 | </div>
|
---|
| 32 | <div class="mb-3">
|
---|
| 33 | <label>Membership Type</label>
|
---|
| 34 | <select name="membershipLevel">
|
---|
| 35 | <option th:each="membership:${memberships}"
|
---|
| 36 | th:text="${membership.toString()}"
|
---|
| 37 | th:value="${membership}">All</option>
|
---|
| 38 | </select>
|
---|
| 39 | </div>
|
---|
| 40 | <div class="mb-3">
|
---|
| 41 | <label>Role</label>
|
---|
| 42 | <select name="role">
|
---|
| 43 | <option th:each="r:${roles}"
|
---|
| 44 | th:text="${r.toString()}"
|
---|
| 45 | th:value="${r}">All</option>
|
---|
| 46 | </select>
|
---|
| 47 | </div>
|
---|
| 48 | <button id="submit" type="submit" class="btn btn-primary">Submit</button>
|
---|
| 49 | </form> |
---|