Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be65226

Browse files
committed
[WebProfilerBundle] Add simple placeholders into search form
1 parent 4c12b7b commit be65226

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/search.html.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</h3>
66
<form action="{{ path('_profiler_search') }}" method="get">
77
<label for="ip">IP</label>
8-
<input type="text" name="ip" id="ip" value="{{ ip }}">
8+
<input type="text" name="ip" id="ip" value="{{ ip }}" placeholder="e.g. 127.0.0.1">
99
<div class="clear-fix"></div>
1010
<label for="method">Method</label>
1111
<select name="method" id="method">
@@ -15,16 +15,16 @@
1515
</select>
1616
<div class="clear-fix"></div>
1717
<label for="url">URL</label>
18-
<input type="text" name="url" id="url" value="{{ url }}">
18+
<input type="url" name="url" id="url" value="{{ url }}" placeholder="e.g. {{ app.request.baseUrl }}">
1919
<div class="clear-fix"></div>
2020
<label for="token">Token</label>
21-
<input type="text" name="token" id="token" value="{{ token }}">
21+
<input type="text" name="token" id="token" value="{{ token }}" placeholder="e.g. 1f321b">
2222
<div class="clear-fix"></div>
2323
<label for="start">From</label>
24-
<input type="text" name="start" id="start" value="{{ start }}">
24+
<input type="date" name="start" id="start" value="{{ start }}" placeholder="e.g. {{ '-2days'|date('dd.mm.YYYY') }}">
2525
<div class="clear-fix"></div>
2626
<label for="end">Until</label>
27-
<input type="text" name="end" id="end" value="{{ end }}">
27+
<input type="date" name="end" id="end" value="{{ end }}" placeholder="e.g. {{ 'now'|date('dd.mm.YYYY') }}">
2828
<div class="clear-fix"></div>
2929
<label for="limit">Limit</label>
3030
<select name="limit" id="limit">

0 commit comments

Comments
 (0)