2012-07-24 11:13:04 +00:00
|
|
|
<form class="form-inline" method="GET" action="/response_preview">
|
|
|
|
<input id="spec" name="spec" class="input-medium search-query" value="{{spec}}">
|
2012-04-29 09:22:00 +00:00
|
|
|
<input type="submit" class="btn" value="preview">
|
2012-07-24 11:38:41 +00:00
|
|
|
{% if not nocraft %}
|
|
|
|
<a href="#" id="submitspec" class="btn">go to</a>
|
|
|
|
{% endif %}
|
2012-04-29 09:22:00 +00:00
|
|
|
</form>
|
|
|
|
<script>
|
|
|
|
$(function(){
|
2012-07-24 11:38:41 +00:00
|
|
|
{% if not nocraft %}
|
2012-04-29 09:22:00 +00:00
|
|
|
$("#submitspec").click(function(){
|
2012-07-24 11:38:41 +00:00
|
|
|
document.location = "{{craftanchor}}" + $("#spec").val()
|
2012-04-29 09:22:00 +00:00
|
|
|
});
|
2012-07-24 11:38:41 +00:00
|
|
|
{% endif %}
|
2012-04-29 09:22:00 +00:00
|
|
|
});
|
|
|
|
</script>
|