aboutsummaryrefslogtreecommitdiffstats
path: root/browser/templates
diff options
context:
space:
mode:
Diffstat (limited to 'browser/templates')
-rw-r--r--browser/templates/frag_form_delete.html.j27
-rw-r--r--browser/templates/frag_form_find.html.j22
-rw-r--r--browser/templates/frag_form_range.html.j220
-rw-r--r--browser/templates/frag_form_upsert.html.j25
4 files changed, 29 insertions, 5 deletions
diff --git a/browser/templates/frag_form_delete.html.j2 b/browser/templates/frag_form_delete.html.j2
new file mode 100644
index 0000000..a362075
--- /dev/null
+++ b/browser/templates/frag_form_delete.html.j2
@@ -0,0 +1,7 @@
+<form id="form_query" action="/delete" method="post" htmp replace=results>
+ <label for="field">Field</label>
+ <input type="text" name="field" id="field" required>
+ <label for="values">Values (one per line)</label>
+ <textarea name="values" id="values" required></textarea>
+ <button type="submit">Run query</button>
+</form>
diff --git a/browser/templates/frag_form_find.html.j2 b/browser/templates/frag_form_find.html.j2
index f527b45..cadd44b 100644
--- a/browser/templates/frag_form_find.html.j2
+++ b/browser/templates/frag_form_find.html.j2
@@ -1,4 +1,4 @@
-<form id="form_query" action="/find" method="get" htmp replace=results>
+<form id="form_query" action="/find" method="post" htmp replace=results>
<label for="field">Field</label>
<input type="text" name="field" id="field" required>
<label for="values">Values (one per line)</label>
diff --git a/browser/templates/frag_form_range.html.j2 b/browser/templates/frag_form_range.html.j2
index 96fe8a8..84b8024 100644
--- a/browser/templates/frag_form_range.html.j2
+++ b/browser/templates/frag_form_range.html.j2
@@ -1,9 +1,21 @@
<form id="form_query" action="/range" method="post" htmp replace=results>
<label for="field">Field</label>
<input type="text" name="field" id="field" required>
- <label for="values">From...</label>
- <input type="text" name="from" id="from" required>
- <label for="values">...To</label>
- <input type="text" name="to" id="to" required>
+ <label for="from_type">Lower bound type</label>
+ <select id="from_type" name="from_type" required>
+ <option value="unbounded">Unbounded</option>
+ <option value="included">Inclusive</option>
+ <option value="excluded">Exclusive</option>
+ </select>
+ <label for="values">Lower bound value</label>
+ <input type="text" name="from_value" id="from_value">
+ <label for="to_type">Upper bound type</label>
+ <select id="to_type" name="to_type" required>
+ <option value="unbounded">Unbounded</option>
+ <option value="included">Inclusive</option>
+ <option value="excluded">Exclusive</option>
+ </select>
+ <label for="values">Upper bound value</label>
+ <input type="text" name="to_value" id="to_value">
<button type="submit">Run query</button>
</form>
diff --git a/browser/templates/frag_form_upsert.html.j2 b/browser/templates/frag_form_upsert.html.j2
new file mode 100644
index 0000000..68820f5
--- /dev/null
+++ b/browser/templates/frag_form_upsert.html.j2
@@ -0,0 +1,5 @@
+<form id="form_query" action="/upsert" method="post" htmp replace=results>
+ <label for="values">Values (one per line)</label>
+ <textarea name="values" id="values" required></textarea>
+ <button type="submit">Run query</button>
+</form>