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
This commit is contained in:
Fabien Potencier 2014-06-06 05:49:45 +02:00
commit 5925780d5f

View File

@ -5,7 +5,7 @@
</h3>
<form action="{{ path('_profiler_search') }}" method="get">
<label for="ip">IP</label>
<input type="text" name="ip" id="ip" value="{{ ip }}">
<input type="text" name="ip" id="ip" value="{{ ip }}" placeholder="e.g. 127.0.0.1">
<div class="clear-fix"></div>
<label for="method">Method</label>
<select name="method" id="method">
@ -15,16 +15,16 @@
</select>
<div class="clear-fix"></div>
<label for="url">URL</label>
<input type="text" name="url" id="url" value="{{ url }}">
<input type="url" name="url" id="url" value="{{ url }}" placeholder="e.g. {{ app.request.baseUrl }}">
<div class="clear-fix"></div>
<label for="token">Token</label>
<input type="text" name="token" id="token" value="{{ token }}">
<input type="text" name="token" id="token" value="{{ token }}" placeholder="e.g. 1f321b">
<div class="clear-fix"></div>
<label for="start">From</label>
<input type="text" name="start" id="start" value="{{ start }}">
<input type="date" name="start" id="start" value="{{ start }}" placeholder="e.g. {{ '-2days'|date('dd.mm.YYYY') }}">
<div class="clear-fix"></div>
<label for="end">Until</label>
<input type="text" name="end" id="end" value="{{ end }}">
<input type="date" name="end" id="end" value="{{ end }}" placeholder="e.g. {{ 'now'|date('dd.mm.YYYY') }}">
<div class="clear-fix"></div>
<label for="limit">Limit</label>
<select name="limit" id="limit">