|
16 | 16 | <input type="text" name="search" id="search" |
17 | 17 | class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6" |
18 | 18 | placeholder="Search..." |
19 | | - value="{{ app.request.get('search') }}"> |
| 19 | + value="{{ app.request.query.get('search') }}"> |
20 | 20 | </div> |
21 | 21 | </div> |
22 | 22 |
|
23 | 23 | <div class="w-48"> |
24 | 24 | <label for="group" class="block text-xs font-medium leading-6 text-gray-900">Group</label> |
25 | 25 | <select id="group" name="group" |
26 | 26 | class="mt-1 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6"> |
27 | | - <option {% if app.request.get('group') == "" %}selected{% endif %} |
| 27 | + <option {% if app.request.query.get('group') == "" %}selected{% endif %} |
28 | 28 | value="">-- choose -- |
29 | 29 | </option> |
30 | 30 | {% for group in groups|default([]) %} |
31 | | - <option {% if app.request.get('group') == group %}selected{% endif %} |
| 31 | + <option {% if app.request.query.get('group') == group %}selected{% endif %} |
32 | 32 | value="{{ group }}">{{ group }}</option> |
33 | 33 | {% endfor %} |
34 | 34 | </select> |
|
39 | 39 | <label for="mode" class="block text-xs font-medium leading-6 text-gray-900">Run mode</label> |
40 | 40 | <select id="mode" name="mode" |
41 | 41 | class="mt-1 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6"> |
42 | | - <option {% if app.request.get('mode') == "" %}selected{% endif %} |
| 42 | + <option {% if app.request.query.get('mode') == "" %}selected{% endif %} |
43 | 43 | value="">-- choose -- |
44 | 44 | </option> |
45 | 45 | {% for mode in modes|default([]) %} |
46 | | - <option {% if app.request.get('mode') == mode %}selected{% endif %} |
| 46 | + <option {% if app.request.query.get('mode') == mode %}selected{% endif %} |
47 | 47 | value="{{ mode }}">{{ mode|replace({'_': ' '}) }}</option> |
48 | 48 | {% endfor %} |
49 | 49 | </select> |
|
54 | 54 | <label for="status" class="block text-xs font-medium leading-6 text-gray-900">Status</label> |
55 | 55 | <select id="status" name="status" |
56 | 56 | class="mt-1 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6"> |
57 | | - <option {% if app.request.get('status') == "" %}selected{% endif %} |
| 57 | + <option {% if app.request.query.get('status') == "" %}selected{% endif %} |
58 | 58 | value="">-- choose -- |
59 | 59 | </option> |
60 | 60 | {% for status in statuses|default([]) %} |
61 | | - <option {% if app.request.get('status') == status %}selected{% endif %} |
| 61 | + <option {% if app.request.query.get('status') == status %}selected{% endif %} |
62 | 62 | value="{{ status }}">{{ status }}</option> |
63 | 63 | {% endfor %} |
64 | 64 | </select> |
|
69 | 69 | {{ heroicon('funnel', 'h-6 w-6') }} |
70 | 70 | </button> |
71 | 71 |
|
72 | | - {% if app.request.get('search') or app.request.get('group') or app.request.get('mode') or app.request.get('status') %} |
| 72 | + {% if app.request.query.get('search') or app.request.query.get('group') or app.request.query.get('mode') or app.request.query.get('status') %} |
73 | 73 | <a class="rounded-md bg-red-600 px-2.5 py-1.5 font-semibold text-white shadow-sm hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600" |
74 | 74 | href="{{ path('patchlevel_event_sourcing_admin_subscription_show') }}"> |
75 | 75 | {{ heroicon('backspace', 'h-6 w-6') }} |
|
0 commit comments