|
1 | 1 | {% load i18n %} |
2 | 2 |
|
3 | | -<div class="actions flex flex-col md:flex-row md:items-center"> |
| 3 | +<div class="actions flex flex-col gap-3 order-last lg:order-none lg:flex-row lg:items-center"> |
4 | 4 | {% block actions %} |
5 | | - <div class="flex"> |
| 5 | + <div class="flex flex-col gap-2 lg:flex-row" x-data="{action: ''}"> |
6 | 6 | {% block actions-form %} |
7 | 7 | {% for field in action_form %} |
8 | 8 | {% if field.label %} |
|
19 | 19 | {% endblock %} |
20 | 20 |
|
21 | 21 | {% block actions-submit %} |
22 | | - <button type="submit" class="bg-white border flex items-center h-9.5 ml-3 px-2 rounded shadow-sm text-gray-400 w-9.5 hover:text-gray-700 focus:outline-none dark:bg-gray-900 dark:border-gray-700 dark:text-gray-500 dark:hover:text-gray-200" title="{% translate "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}"> |
23 | | - <span class="material-symbols-outlined md-18">chevron_right</span> |
| 22 | + <button type="submit" x-show="action" class="bg-primary-600 cursor-pointer flex font-medium items-center justify-center px-3 py-2 rounded-md text-sm text-white whitespace-nowrap" title="{% translate "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}"> |
| 23 | + {% trans "Run" %} |
24 | 24 | </button> |
25 | 25 | {% endblock %} |
26 | 26 | </div> |
27 | 27 |
|
28 | 28 | {% block actions-counter %} |
29 | 29 | {% if actions_selection_counter %} |
30 | | - <div class="hidden truncate md:block"> |
31 | | - <span class="action-counter ml-4 text-sm text-gray-500 dark:text-gray-400" data-actions-icnt="{{ cl.result_list|length }}"> |
| 30 | + <div class="bg-gray-100 flex flex-row gap-2 h-9.5 items-center px-3 rounded-md shadow-sm truncate dark:bg-white/[.04] lg:bg-transparent dark:lg:!bg-transparent lg:px-0 lg:shadow-none"> |
| 31 | + <span class="action-counter text-sm text-gray-500 dark:text-gray-400" data-actions-icnt="{{ cl.result_list|length }}"> |
32 | 32 | {{ selection_note }} |
33 | 33 | </span> |
34 | 34 |
|
35 | 35 | {% if cl.result_count != cl.result_list|length %} |
36 | | - <span class="all hidden ml-4 text-gray-500 text-sm"> |
| 36 | + <span class="all hidden text-gray-500 text-sm"> |
37 | 37 | {{ selection_note_all }} |
38 | 38 | </span> |
39 | 39 |
|
40 | | - <span class="question hidden ml-4 text-primary-600 text-sm underline"> |
| 40 | + <span class="question hidden text-primary-600 text-sm underline"> |
41 | 41 | <a href="#" title="{% translate "Click here to select the objects across all pages" %}"> |
42 | 42 | {% blocktranslate with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktranslate %} |
43 | 43 | </a> |
44 | 44 | </span> |
45 | 45 |
|
46 | | - <span class="clear hidden ml-4 text-sm text-red-600 underline"> |
| 46 | + <span class="clear hidden text-sm text-red-600 underline"> |
47 | 47 | <a href="#"> |
48 | 48 | {% translate "Clear selection" %} |
49 | 49 | </a> |
|
0 commit comments