Adding ISOThread and UNC Thread

This commit is contained in:
Ian Roddis committed 2026-06-24 21:58:15 -03:00
1 parent 9285a021c0
commit 35e8a61b1d
22 files changed
+796 -3

No files matched your search

@@ -0,0 +1,20 @@
<tr id="iso-thread-{{ t.id }}">
<td colspan="5">
<form hx-post="/admin/iso-threads/{{ t.id }}"
hx-target="#iso-thread-{{ t.id }}"
hx-swap="outerHTML"
class="inline-edit">
<span class="muted">#{{ t.id }}</span>
<label>Diameter (mm) <input type="number" name="diameter_mm" step="0.001" min="0" value="{{ t.diameter_mm }}" required></label>
<label>Pitch (mm) <input type="number" name="pitch_mm" step="0.001" min="0" value="{{ t.pitch_mm }}" required></label>
<label>Depth (mm) <input type="number" name="depth_mm" step="0.001" min="0" value="{{ t.depth_mm if t.depth_mm is not none else '' }}" placeholder="optional"></label>
<div class="row-actions">
<button type="submit" class="btn btn-primary">Save</button>
<button type="button" class="btn btn-ghost"
hx-get="/admin/iso-threads/{{ t.id }}/row"
hx-target="#iso-thread-{{ t.id }}"
hx-swap="outerHTML">Cancel</button>
</div>
</form>
</td>
</tr>