2012-07-24 11:13:04 +00:00
|
|
|
<form class="form-inline" method="GET" action="/response_preview">
|
2012-07-24 22:24:09 +00:00
|
|
|
<input
|
|
|
|
style="width: 20em"
|
|
|
|
id="spec"
|
|
|
|
name="spec"
|
|
|
|
class="input-medium search-query"
|
|
|
|
value="{{spec}}"
|
|
|
|
placeholder="code[msg]:[features]"
|
|
|
|
>
|
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>
|