48 lines
1.5 KiB
HTML
48 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Update Item</title>
|
|
</head>
|
|
<body>
|
|
<h2 align="center">Update Item</h2>
|
|
|
|
<form action='' method = "POST">
|
|
<p>
|
|
<label for="assettag">Asset Tag:</label>
|
|
<input id="assettag" type = "text" name = "assettag" value="{{item.assettag}}" required/>
|
|
</p>
|
|
<p>
|
|
<label for="hostname">Host Name:</label>
|
|
<input id="hostname" type = "text" name = "hostname" value="{{item.hostname}}" required/>
|
|
</p>
|
|
<p>
|
|
<label for="warrantyfrom">Warranty From:</label>
|
|
<input id="warrantyfrom" type = "date" name = "warrantyfrom" value="{{item.warrantyfrom}}" required/>
|
|
</p>
|
|
<p>
|
|
<label for="status">Status:</label>
|
|
<input id="status" type = "integer" name = "status" value="{{item.status}}" required/>
|
|
</p>
|
|
<p>
|
|
<label for="staffnum">Staff No:</label>
|
|
<input id="staffnum" type = "integer" name = "staffnum" value="{{item.staffnum}}" required/>
|
|
</p>
|
|
<p>
|
|
<input type = "submit" value = "Update" />
|
|
</p>
|
|
</form>
|
|
|
|
<p align="center">
|
|
{% if exc == 'integrity' %}
|
|
Item with such SKU already exists
|
|
{% endif %}
|
|
{% if exc == 'status' %}
|
|
Data input error. Invalid value for <b>status</b>.
|
|
{% endif %}
|
|
{% if exc == 'staffnum' %}
|
|
Data input error. Staff number must be an integer
|
|
{% endif %}
|
|
</p>
|
|
</body>
|
|
</html> |