express-inventory-application/views/editcategory.ejs
2023-09-09 18:47:17 -07:00

48 lines
1.6 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>Good Pickin's - Editing <%= category.name %></title>
<link rel="stylesheet" href="/styles/css/bootstrap.min.css" />
</head>
<body class="bg-dark text-light">
<div class="d-flex flex-column py-4 px-4 align-items-center">
<h1 class="mb-4">Editing <%= category.name %></h1>
<form class="d-flex flex-column align-items-center w-50" method="post">
<div class="input-group mb-4" data-bs-theme="dark">
<span class="input-group-text" id="name">Category Name:</span>
<input
type="text"
class="form-control"
aria-label="category name"
aria-describedby="name"
name="name"
value="<%= category.name %>"
/>
</div>
<div class="input-group mb-4" data-bs-theme="dark">
<span class="input-group-text" id="description">
Category Description:
</span>
<input
type="text"
class="form-control"
aria-label="category description"
aria-describedby="description"
name="description"
value="<%= category.description %>"
/>
</div>
<button type="submit" class="btn btn-outline-light px-4 py-2">
Submit
</button>
</form>
</div>
<footer
class="position-fixed bottom-0 border-light border-top w-100 py-2 d-flex justify-content-center bg-dark"
>
<a href="/" type="button" class="btn btn-outline-light px-4 py-1">
Back to Home
</a>
</footer>
</body>
</html>