partdb/public/index.html

60 lines
3.0 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
2023-01-29 08:56:31 +01:00
<title>electronic parts inventory manager</title>
2023-01-23 23:58:59 +01:00
<script type='application/javascript' src='partdb.js'></script>
<link rel='stylesheet' href='index.css'>
</head>
<body>
2023-01-25 00:17:39 +01:00
<div class="container">
<table>
<thead>
<tr><th>search</th><th>part details</th></tr>
</thead>
<tbody>
<tr>
<td class="left">
<div class="resize">
<input class="fill" type="text" id="terms" name="terms" placeholder="search terms (space seperated, anded)" oninput="search()"><br>
2023-01-27 02:15:01 +01:00
<select id="results" size="20" onchange="select_part()"></select>
2023-01-25 00:17:39 +01:00
</div>
</td>
<td class="right">
<div class="resize">
2023-01-25 05:15:15 +01:00
<div class="name">name:</div><div class="justify"><input class="full" type="text" id="part_name"></div>
<div class="name">description:</div><div class="justify"><input class="full" type="text" id="part_description"></div>
<div>details:</div>
<div class="justify"><textarea class="full" id="part_details" rows="4"></textarea></div>
2023-01-29 10:09:42 +01:00
<div class="name">package:</div><div class="justify"><input class="full" type="text" id="part_package"></div>
2023-01-25 05:15:15 +01:00
<div class="name">manufacturer:</div><div class="justify"><input class="full" type="text" id="part_manufacturer"></div>
2023-01-28 00:20:29 +01:00
<div class="name">mpn:</div><div class="justify"><input class="full" type="text" id="part_mpn"></div>
2023-01-25 05:15:15 +01:00
<div class="name">family:</div><div class="justify"><input class="full" type="text" id="part_family"></div>
2023-01-28 05:00:13 +01:00
<div class="name"><span id="url_datasheet">datasheet</span>:</div><div class="justify"><input class="full" type="text" id="part_datasheet"></div>
<div class="name"><span id="url_page">page</span>:</div><div class="justify"><input class="full" type="text" id="part_page"></div>
2023-01-25 08:46:21 +01:00
<div class="name">location:</div><div class="justify"><input class="full" type="text" id="part_location"></div>
<div class="name">stock:</div><div class="justify"><input class="full" type="number" min="0" step="1" id="part_stock"></div>
2023-01-25 07:47:48 +01:00
<table>
<thead><tr><th>distributor</th><th>sku</th><th>page</th></tr></thead>
<tbody id="distributors"></tbody>
</table>
2023-01-25 11:22:26 +01:00
<table>
<thead><tr><th>property</th><th>value</th></tr></thead>
2023-01-25 11:22:26 +01:00
<tbody id="properties"></tbody>
</table>
2023-01-26 11:55:56 +01:00
<div class="hscroll" id="attachments"></div>
2023-01-31 03:37:49 +01:00
<div><input type="text" id="attachment" placeholder="URL"><button type="button" onclick="attach()">attach</button></div>
2023-01-30 04:18:56 +01:00
<table>
2023-01-30 12:30:11 +01:00
<thead><tr><th>component</th><th>quantity</th><th>description</th></tr></thead>
2023-01-30 04:18:56 +01:00
<tbody id="components"></tbody>
</table>
2023-01-26 00:42:54 +01:00
<button type="button" onclick="delete_part()">delete part (including children)</button>
2023-01-27 02:04:03 +01:00
<button type="button" onclick="update_part()">update part (or add if not selected)</button>
2023-01-25 00:17:39 +01:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>