in-c4/static/form.html

52 lines
1.5 KiB
HTML
Raw Normal View History

2022-08-04 05:41:51 +02:00
<!DOCTYPE html>
<html>
<head>
<title>in?</title>
<link rel="stylesheet" href="style.css">
2022-08-05 21:59:58 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-08-04 05:41:51 +02:00
<script src="form.js"></script>
2022-08-05 21:58:53 +02:00
<script src="shared.js"></script>
2022-08-04 05:41:51 +02:00
</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>
2022-08-05 21:58:53 +02:00
<b>Coordinates</b> (click on map)
<div id="map">
2022-08-05 21:58:53 +02:00
<img src="80x80.svg" onclick="mapClick(event)">
<div id="mapgrid"></div>
2022-08-05 21:58:53 +02:00
</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()">
2022-08-04 05:41:51 +02:00
<label for="type">Type</label>
<input id="type" type="text">
2022-08-05 22:05:51 +02:00
<p id="knowntypes"></p>
2022-08-04 05:41:51 +02:00
<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>