<base target=htmz>
<label>
Title:
<div id="title">
<b>The Seven Bits</b>
<a href="/field?id=title&value=The Seven Bits#title">edit</a>
</div>
</label>
<label>
Genre:
<div id="genre">
<b>Horror</b>
<a href="/field?id=genre&value=Horror#genre">edit</a>
</div>
</label>
<label>
Description:
<div id="description">
<b>Seven ate nine.</b>
<a href="/field?id=description&value=Seven ate nine.#description">edit</a>
</div>
</label>
if (request.query.save) {
response.send(`
<div id='${request.query.id}'>
<b>${request.query.value}</b>
<a href="/field?id=${request.query.id}&value=${request.query.value}#${request.query.id}">
edit
</a>
</div>
`);
} else {
response.send(`
<form id="${request.query.id}" action="/field#${request.query.id}">
<input hidden name="id" value="${request.query.id}">
<input name="value" value="${request.query.value}">
<button name="save" value="save">save</button>
</form>
`);
}