Sizing and placeholder for preview forms.

This commit is contained in:
Aldo Cortesi 2012-07-25 10:24:09 +12:00
parent 7dab85e8b1
commit e1df7f47a6
3 changed files with 16 additions and 5 deletions

View File

@ -1,4 +1,11 @@
<form class="form-inline" method="GET" action="/request_preview"> <form class="form-inline" method="GET" action="/request_preview">
<input id="spec" name="spec" class="input-medium search-query" value="{{spec}}"> <input
style="width: 20em"
id="spec"
name="spec"
class="input-medium search-query"
value="{{spec}}"
placeholder="method:path:[features]"
>
<input type="submit" class="btn" value="preview"> <input type="submit" class="btn" value="preview">
</form> </form>

View File

@ -1,5 +1,12 @@
<form class="form-inline" method="GET" action="/response_preview"> <form class="form-inline" method="GET" action="/response_preview">
<input id="spec" name="spec" class="input-medium search-query" value="{{spec}}"> <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"> <input type="submit" class="btn" value="preview">
{% if not nocraft %} {% if not nocraft %}
<a href="#" id="submitspec" class="btn">go to</a> <a href="#" id="submitspec" class="btn">go to</a>

View File

@ -59,6 +59,3 @@ class TestApp(tutils.DaemonTests):
assert r.status_code == 200 assert r.status_code == 200
assert 'Request' in r.content assert 'Request' in r.content