in-c4/static/form.html
2022-08-05 21:58:53 +02:00

49 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>in?</title>
<link rel="stylesheet" href="style.css">
<script src="form.js"></script>
<script src="shared.js"></script>
</head>
<body>
<h1><a href="../">in?</a></h1>
<form id="form">
<label for="id">ID</label>
<input id="id" type="text" placeholder="loading...">
<label for="is_in">Is in</label>
<select id="is_in">
<option value=""></option>
</select>
<b>Coordinates</b> (click on map)
<div id="plan">
<img src="80x80.svg" onclick="mapClick(event)">
<div id="grid"></div>
</div>
<label for="coords_bl">Bottom left</label><label for="coords_tr">Top right</label>
<input id="coords_bl" type="text" oninput="formCoordsToMap()"><input id="coords_tr" type="text" oninput="formCoordsToMap()">
<label for="type">Type</label>
<input id="type" type="text">
<label for="name">Name / Label</label>
<input id="name" type="text">
<label for="content">Content</label>
<textarea id="content"></textarea>
<label for="note">Note</label>
<textarea id="note"></textarea>
<label for="hidden">Hide by default</label>
<input type="checkbox" id="hidden">
</form>
<button id="delete" class="btn red" autocomplete="off">Delete</button>
<button id="save" class="btn green" autocomplete="off">Save</button>
</body>
</html>