Adding ISOThread and UNC Thread
This commit is contained in:
1 parent
9285a021c0
commit
35e8a61b1d
22 files changed
+796
-3
No files matched your search
@@ -0,0 +1,27 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}UNC Threads · {{ app_name }}{% endblock %}
|
||||
{% block body %}
|
||||
{% include "_nav.html" %}
|
||||
<main class="container">
|
||||
<h1>UNC Threads</h1>
|
||||
|
||||
<div class="card">
|
||||
<h2>Add thread</h2>
|
||||
<form hx-post="/admin/unc-threads" hx-target="#unc-thread-list" hx-swap="outerHTML" class="form-grid">
|
||||
<label>Diameter <input type="text" name="diameter_fraction" placeholder='e.g. 1/4, 3/8, 1-1/2' required></label>
|
||||
<label>TPI <input type="number" name="tpi" min="1" step="1" required></label>
|
||||
<label>Series
|
||||
<select name="series">
|
||||
{% for s in series_options %}
|
||||
<option value="{{ s.value }}">{{ s.value }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
<label>Depth (in) <input type="number" name="depth_in" step="0.001" min="0" placeholder="optional"></label>
|
||||
<button type="submit" class="btn btn-primary">Add</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% include "admin/_unc_threads_table.html" %}
|
||||
</main>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user