aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/templates/response_previewform.html
blob: a82535e4f6234e67950cb306fd50bf831e098c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<form class="form-inline" method="GET" action="/response_preview">
    <input 
        style="width: 20em"
        id="spec"
        name="spec"
        class="input-medium search-query"
        value="{{spec}}"
        placeholder="code[msg]:[features]"
    >
    <input type="submit" class="btn" value="preview">
    {% if not nocraft %}
    <a href="#" id="submitspec" class="btn">go to</a>
    {% endif %}
</form>
<script>
    $(function(){
        {% if not nocraft %}
        $("#submitspec").click(function(){
            document.location = "{{craftanchor}}" + $("#spec").val()
        });
        {% endif %}
    });
</script>