|
1 | 1 | {% load i18n admin_urls %} |
2 | 2 |
|
3 | | -<div {% if not is_popup %}id="submit-row"{% endif %} class="relative z-20 {% if not is_popup %} mt-20 lg:mt-8{% endif %}"> |
4 | | - <div class="{% if not is_popup %}bottom-0 fixed left-0 right-0{% endif %}" {% if not is_popup %}x-bind:class="{'xl:left-0': !sidebarDesktopOpen, 'xl:left-72': sidebarDesktopOpen}"{% endif %}> |
5 | | - <div class="bg-white dark:bg-gray-900 {% if not is_popup %}border-t px-4 py-4 relative scrollable-top lg:px-12 dark:border-gray-800{% endif %}"> |
| 3 | +<div {% if not is_popup %}id="submit-row"{% endif %} class="relative z-20 {% if not is_popup %} mt-8{% endif %}"> |
| 4 | + <div class="{% if not is_popup %}lg:bottom-0 lg:fixed lg:left-0 lg:right-0{% endif %}" {% if not is_popup %}x-bind:class="{'xl:left-0': !sidebarDesktopOpen, 'xl:left-72': sidebarDesktopOpen}"{% endif %}> |
| 5 | + <div class="bg-white dark:bg-gray-900 {% if not is_popup %}lg:border-t lg:py-4 relative scrollable-top lg:px-12 dark:border-gray-800{% endif %}"> |
6 | 6 | <div class="container flex flex-col-reverse gap-3 items-center mx-auto lg:flex-row-reverse"> |
7 | 7 | {% block submit-row %} |
8 | 8 | {% if show_save %} |
|
18 | 18 | {% endfor %} |
19 | 19 |
|
20 | 20 | {% if show_save_and_continue %} |
21 | | - <button type="submit" name="_continue" class="border font-medium hidden px-3 py-2 rounded-md transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:hover:text-gray-200 dark:hover:bg-gray-900"> |
| 21 | + <button type="submit" name="_continue" class="border font-medium px-3 py-2 rounded-md transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:hover:text-gray-200 dark:hover:bg-gray-900"> |
22 | 22 | {% if can_change %} |
23 | 23 | {% translate 'Save and continue editing' %} |
24 | 24 | {% else %} |
|
30 | 30 | {% if show_close %} |
31 | 31 | {% url opts|admin_urlname:'changelist' as changelist_url %} |
32 | 32 |
|
33 | | - <a href="{% add_preserved_filters changelist_url %}" class="border font-medium hidden px-3 py-2 rounded-md transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:hover:text-gray-200 dark:hover:bg-gray-900"> |
| 33 | + <a href="{% add_preserved_filters changelist_url %}" class="border font-medium px-3 py-2 rounded-md transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:hover:text-gray-200 dark:hover:bg-gray-900"> |
34 | 34 | {% translate 'Close' %} |
35 | 35 | </a> |
36 | 36 | {% endif %} |
37 | 37 |
|
38 | 38 | {% if show_save_and_add_another %} |
39 | | - <button type="submit" name="_addanother" class="border font-medium hidden px-3 py-2 rounded-md transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:hover:text-gray-200 dark:hover:bg-gray-900"> |
| 39 | + <button type="submit" name="_addanother" class="border font-medium px-3 py-2 rounded-md transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:hover:text-gray-200 dark:hover:bg-gray-900"> |
40 | 40 | {% translate 'Save and add another' %} |
41 | 41 | </button> |
42 | 42 | {% endif %} |
43 | 43 |
|
44 | 44 | {% if show_save_as_new %} |
45 | | - <button type="submit" name="_saveasnew" class="border font-medium hidden px-3 py-2 rounded-md transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:hover:text-gray-200 dark:hover:bg-gray-900"> |
| 45 | + <button type="submit" name="_saveasnew" class="border font-medium px-3 py-2 rounded-md transition-all w-full hover:bg-gray-50 lg:block lg:w-auto dark:border-gray-700 dark:hover:text-gray-200 dark:hover:bg-gray-900"> |
46 | 46 | {% translate 'Save as new' %} |
47 | 47 | </button> |
48 | 48 | {% endif %} |
|
51 | 51 | {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %} |
52 | 52 |
|
53 | 53 | <p class="deletelink-box mr-auto w-full lg:w-auto"> |
54 | | - <a href="{% add_preserved_filters delete_url %}" class="block border border-red-500 font-medium px-3 py-2 rounded-md text-center text-red-500 whitespace-nowrap dark:border-transparent dark:bg-red-500/20 dark:text-red-500"> |
| 54 | + <a href="{% add_preserved_filters delete_url %}" class="bg-red-600 flex items-center justify-center font-medium h-9.5 ml-auto px-3 py-2 rounded-md text-white dark:bg-red-500/20 dark:text-red-500"> |
55 | 55 | {% translate "Delete" %} {{ opts.verbose_name }} |
56 | 56 | </a> |
57 | 57 | </p> |
|
0 commit comments