commit | author | age | ||
d062a4 | 1 | <body> |
F | 2 | <h1>New product</h1> |
fc5ee7 | 3 | <form method="post" action="/products/create"> |
d062a4 | 4 | <label for="name">Name</label> |
F | 5 | <input type="text", id="name", name="name"> |
6 | ||
739d61 | 7 | <?php if (isset($errors["name"])): ?> |
F | 8 | <p><?= $errors["name"] ?></p> |
9 | <?php endif; ?> | |
10 | ||
d062a4 | 11 | <label for="description">Description</label> |
F | 12 | <textarea id="description", name="description"></textarea> |
13 | ||
14 | <button>Save</button> | |
15 | </form> | |
16 | </body> | |
17 | </hmtl> |