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

Skip to content

Commit 5925780

Browse files
committed
feature #10660 [RFC][WebProfilerBundle] Add simple placeholders into search form (stloyd)
This PR was merged into the 2.6-dev branch. Discussion ---------- [RFC][WebProfilerBundle] Add simple placeholders into search form This is an RFC mostly, it's not a real feature, it's more like little helper for the profiler form, I guess that would mostly useful for _newcomers_, but sometimes even _old dogs_ could find it useful sometimes =) | Q | A | ------------- | --- | Bug fix? | no | New feature? | kinda | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT ![form](https://cloud.githubusercontent.com/assets/67402/2655386/4637aa0c-bfe5-11e3-958e-84308217b52e.png) Commits ------- be65226 [WebProfilerBundle] Add simple placeholders into search form
2 parents 12d44bc + be65226 commit 5925780

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)