[WebProfilerBundle] Improve the logger panel

This commit is contained in:
Victor Berchet 2012-01-27 11:54:34 +01:00
parent 06da573d04
commit a52c675a46

View File

@ -33,18 +33,17 @@
<tr> <tr>
<th>Filter</th> <th>Filter</th>
<td> <td>
<form action="" method="get" style="display: inline"> <form id="priority-form" action="" method="get" style="display: inline">
<input type="hidden" name="panel" value="logger" /> <input type="hidden" name="panel" value="logger" />
<label for="priority">Priority</label> <label for="priority">Priority</label>
<select name="priority"> <select name="priority" onchange="document.getElementById('priority-form').submit(); ">
<option value="100"{{ 100 == priority ? ' selected="selected"' : '' }}>DEBUG</option> {% for value, text in { 100: 'DEBUG', 200: 'INFO', 300: 'WARNING', 400: 'ERROR', 500: 'CRITICAL', 550: 'ALERT' } %}
<option value="200"{{ 200 == priority ? ' selected="selected"' : '' }}>INFO</option> <option value="{{ value }}"{{ value == priority ? ' selected' : '' }}>{{ text }}</option>
<option value="300"{{ 300 == priority ? ' selected="selected"' : '' }}>WARNING</option> {% endfor %}
<option value="400"{{ 400 == priority ? ' selected="selected"' : '' }}>ERROR</option>
<option value="500"{{ 500 == priority ? ' selected="selected"' : '' }}>CRITICAL</option>
<option value="550"{{ 550 == priority ? ' selected="selected"' : '' }}>ALERT</option>
</select> </select>
<input type="submit" value="refresh" /> <noscript>
<input type="submit" value="refresh" />
</noscript>
</form> </form>
</td> </td>
</tr> </tr>
@ -69,4 +68,4 @@
<em>No logs available.</em> <em>No logs available.</em>
</p> </p>
{% endif %} {% endif %}
{% endblock %} {% endblock %}