This repository has been archived on 2025-01-14. You can view files and clone it, but cannot push or open issues/pull-requests.
computer-web/src/main/webapp/editComputer.jsp

26 lines
930 B
Plaintext

<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Update Computer</title>
</head>
<body>
<h1>Update Computer</h1>
<form action="/editComputer" method="post">
<input type="hidden" name="id" value="${computer.id}">
<label for="name">Name: </label><br>
<input type="text" id="name" name="name" value="${computer.name}"><br><br>
<label for="price">Price: </label><br>
<input type="text" id="price" name="price" value="${computer.price}"><br><br>
<label for="stock">Stock: </label><br>
<input type="text" id="stock" name="stock" value="${computer.stock}"><br><br>
<input type="submit" value="Update Computer">
</form>
<br>
<a href="/computerList">Back to List</a>
</body>
</html>