aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/templates/response_previewform.html
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/templates/response_previewform.html')
-rw-r--r--libpathod/templates/response_previewform.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/libpathod/templates/response_previewform.html b/libpathod/templates/response_previewform.html
new file mode 100644
index 00000000..74b25ce1
--- /dev/null
+++ b/libpathod/templates/response_previewform.html
@@ -0,0 +1,12 @@
+<form class="form-inline" method="GET" action="/response_preview">
+ <input id="spec" name="spec" class="input-medium search-query" value="{{spec}}">
+ <input type="submit" class="btn" value="preview">
+ <a href="#" id="submitspec" class="btn">go</a>
+</form>
+<script>
+ $(function(){
+ $("#submitspec").click(function(){
+ document.location = "/p/" + $("#spec").val()
+ });
+ });
+</script>