Files
internship_node/day13/views/create-product.jade
T
2025-07-17 21:55:47 +01:00

22 lines
807 B
Plaintext

extends layout
block content
.container.mt-5
h2 Add Product
if error
.alert.alert-danger= error
form(method="POST" action="/create-product")
.form-group
label(for="title") Title
input.form-control(type="text" name="title" id="title" required)
.form-group
label(for="description") Description
textarea.form-control(name="description" id="description" required)
.form-group
label(for="price") Price (in dollars)
input.form-control(type="number" name="price" id="price" min="0" step="0.01" required)
.form-group
label(for="image") Image URL
input.form-control(type="text" name="image" id="image")
button.btn.btn-primary(type="submit") Add Product
a.btn.btn-secondary.ml-2(href="/") Cancel