django-unfold 0.55.3__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. {django_unfold-0.55.3.dist-info → django_unfold-1.0.0.dist-info}/METADATA +1 -1
  2. {django_unfold-0.55.3.dist-info → django_unfold-1.0.0.dist-info}/RECORD +124 -123
  3. {django_unfold-0.55.3.dist-info → django_unfold-1.0.0.dist-info}/WHEEL +1 -1
  4. unfold/contrib/filters/templates/unfold/filters/filters_numeric_slider.html +2 -2
  5. unfold/contrib/forms/templates/unfold/forms/array.html +5 -5
  6. unfold/contrib/forms/templates/unfold/forms/helpers/toolbar.html +23 -23
  7. unfold/contrib/forms/widgets.py +7 -7
  8. unfold/contrib/guardian/templates/admin/guardian/model/obj_perms_manage.html +4 -2
  9. unfold/contrib/guardian/templates/admin/guardian/model/obj_perms_manage_group.html +5 -3
  10. unfold/contrib/guardian/templates/admin/guardian/model/obj_perms_manage_user.html +5 -3
  11. unfold/contrib/guardian/templates/unfold/guardian/group_form.html +4 -4
  12. unfold/contrib/guardian/templates/unfold/guardian/user_form.html +4 -4
  13. unfold/contrib/import_export/templates/admin/import_export/change_form.html +1 -1
  14. unfold/contrib/import_export/templates/admin/import_export/export.html +4 -4
  15. unfold/contrib/import_export/templates/admin/import_export/import.html +1 -1
  16. unfold/contrib/import_export/templates/admin/import_export/import_confirm.html +2 -2
  17. unfold/contrib/import_export/templates/admin/import_export/import_errors.html +18 -12
  18. unfold/contrib/import_export/templates/admin/import_export/import_form.html +2 -2
  19. unfold/contrib/import_export/templates/admin/import_export/import_preview.html +2 -2
  20. unfold/contrib/import_export/templates/admin/import_export/import_validation.html +7 -7
  21. unfold/contrib/simple_history/templates/simple_history/object_history.html +3 -3
  22. unfold/contrib/simple_history/templates/simple_history/object_history_form.html +2 -2
  23. unfold/contrib/simple_history/templates/simple_history/object_history_list.html +2 -2
  24. unfold/contrib/simple_history/templates/simple_history/submit_line.html +4 -4
  25. unfold/forms.py +1 -1
  26. unfold/settings.py +22 -22
  27. unfold/sites.py +7 -2
  28. unfold/static/unfold/css/styles.css +2 -1
  29. unfold/static/unfold/fonts/material-symbols/styles.css +0 -16
  30. unfold/styles.css +140 -84
  31. unfold/templates/admin/actions.html +4 -4
  32. unfold/templates/admin/app_index.html +1 -1
  33. unfold/templates/admin/app_list.html +2 -2
  34. unfold/templates/admin/auth/user/add_form.html +1 -1
  35. unfold/templates/admin/auth/user/change_password.html +2 -2
  36. unfold/templates/admin/base.html +6 -6
  37. unfold/templates/admin/change_form.html +6 -4
  38. unfold/templates/admin/change_list.html +11 -9
  39. unfold/templates/admin/change_list_results.html +4 -4
  40. unfold/templates/admin/date_hierarchy.html +1 -1
  41. unfold/templates/admin/delete_confirmation.html +4 -4
  42. unfold/templates/admin/delete_selected_confirmation.html +3 -3
  43. unfold/templates/admin/edit_inline/stacked.html +2 -2
  44. unfold/templates/admin/edit_inline/tabular.html +3 -3
  45. unfold/templates/admin/filter.html +3 -3
  46. unfold/templates/admin/includes/fieldset.html +1 -1
  47. unfold/templates/admin/index.html +1 -1
  48. unfold/templates/admin/login.html +6 -6
  49. unfold/templates/admin/nav_sidebar.html +11 -3
  50. unfold/templates/admin/object_history.html +4 -4
  51. unfold/templates/admin/pagination.html +18 -24
  52. unfold/templates/admin/search_form.html +3 -3
  53. unfold/templates/admin/submit_line.html +53 -56
  54. unfold/templates/auth/widgets/read_only_password_hash.html +1 -1
  55. unfold/templates/registration/logged_out.html +6 -8
  56. unfold/templates/registration/password_change_done.html +1 -1
  57. unfold/templates/registration/password_change_form.html +1 -1
  58. unfold/templates/unfold/components/button.html +1 -1
  59. unfold/templates/unfold/components/card.html +5 -5
  60. unfold/templates/unfold/components/chart/cohort.html +2 -2
  61. unfold/templates/unfold/components/navigation.html +2 -2
  62. unfold/templates/unfold/components/progress.html +1 -1
  63. unfold/templates/unfold/components/table.html +3 -3
  64. unfold/templates/unfold/components/tracker.html +1 -1
  65. unfold/templates/unfold/helpers/account_links.html +7 -7
  66. unfold/templates/unfold/helpers/actions_row.html +3 -3
  67. unfold/templates/unfold/helpers/app_list.html +7 -7
  68. unfold/templates/unfold/helpers/app_list_default.html +2 -2
  69. unfold/templates/unfold/helpers/change_list_actions.html +1 -1
  70. unfold/templates/unfold/helpers/change_list_filter.html +4 -4
  71. unfold/templates/unfold/helpers/change_list_filter_actions.html +5 -5
  72. unfold/templates/unfold/helpers/delete_submit_line.html +2 -2
  73. unfold/templates/unfold/helpers/display_dropdown.html +3 -3
  74. unfold/templates/unfold/helpers/display_header.html +1 -1
  75. unfold/templates/unfold/helpers/edit_inline/tabular_delete.html +1 -1
  76. unfold/templates/unfold/helpers/edit_inline/tabular_field.html +1 -1
  77. unfold/templates/unfold/helpers/edit_inline/tabular_row.html +1 -1
  78. unfold/templates/unfold/helpers/edit_inline/tabular_title.html +1 -1
  79. unfold/templates/unfold/helpers/empty_results.html +4 -4
  80. unfold/templates/unfold/helpers/field_readonly_value.html +1 -1
  81. unfold/templates/unfold/helpers/fieldset_row_checkbox.html +2 -2
  82. unfold/templates/unfold/helpers/fieldset_row_field.html +1 -1
  83. unfold/templates/unfold/helpers/fieldsets_tabs.html +1 -1
  84. unfold/templates/unfold/helpers/header.html +3 -1
  85. unfold/templates/unfold/helpers/header_back_button.html +1 -1
  86. unfold/templates/unfold/helpers/history.html +2 -2
  87. unfold/templates/unfold/helpers/label.html +1 -1
  88. unfold/templates/unfold/helpers/language_switch.html +3 -3
  89. unfold/templates/unfold/helpers/messages/debug.html +1 -1
  90. unfold/templates/unfold/helpers/messages/error.html +1 -1
  91. unfold/templates/unfold/helpers/messages/errornote.html +1 -1
  92. unfold/templates/unfold/helpers/messages/info.html +1 -1
  93. unfold/templates/unfold/helpers/messages/success.html +1 -1
  94. unfold/templates/unfold/helpers/messages/warning.html +1 -1
  95. unfold/templates/unfold/helpers/messages.html +1 -1
  96. unfold/templates/unfold/helpers/navigation.html +10 -14
  97. unfold/templates/unfold/helpers/navigation_header.html +6 -4
  98. unfold/templates/unfold/helpers/pagination.html +7 -0
  99. unfold/templates/unfold/helpers/search.html +2 -2
  100. unfold/templates/unfold/helpers/search_results.html +1 -1
  101. unfold/templates/unfold/helpers/site_dropdown.html +2 -2
  102. unfold/templates/unfold/helpers/site_icon.html +6 -6
  103. unfold/templates/unfold/helpers/submit.html +1 -1
  104. unfold/templates/unfold/helpers/tab_action.html +5 -5
  105. unfold/templates/unfold/helpers/tab_actions.html +1 -1
  106. unfold/templates/unfold/helpers/tab_items.html +6 -6
  107. unfold/templates/unfold/helpers/tab_list.html +1 -1
  108. unfold/templates/unfold/helpers/theme_switch.html +8 -8
  109. unfold/templates/unfold/helpers/welcomemsg.html +3 -3
  110. unfold/templates/unfold/layouts/base_simple.html +3 -3
  111. unfold/templates/unfold/layouts/skeleton.html +2 -2
  112. unfold/templates/unfold/widgets/clearable_file_input.html +3 -3
  113. unfold/templates/unfold/widgets/clearable_file_input_small.html +5 -5
  114. unfold/templates/unfold/widgets/foreign_key_raw_id.html +5 -5
  115. unfold/templates/unfold/widgets/related_widget_wrapper.html +8 -8
  116. unfold/templates/unfold/widgets/split_datetime.html +2 -2
  117. unfold/templates/unfold_crispy/field.html +1 -1
  118. unfold/templates/unfold_crispy/inputs.html +1 -1
  119. unfold/templates/unfold_crispy/layout/checkbox.html +1 -1
  120. unfold/templates/unfold_crispy/layout/fieldset.html +1 -1
  121. unfold/templates/unfold_crispy/layout/table_inline_formset.html +2 -2
  122. unfold/templatetags/unfold.py +23 -9
  123. unfold/widgets.py +29 -34
  124. {django_unfold-0.55.3.dist-info → django_unfold-1.0.0.dist-info}/LICENSE.md +0 -0
@@ -24,7 +24,7 @@
24
24
 
25
25
  {% if not is_popup %}
26
26
  {% block breadcrumbs %}
27
- <div class="px-4 lg:px-8">
27
+ <div class="px-4">
28
28
  <div class="{% if not cl.model_admin.list_fullwidth %}container{% endif %} mb-6 mx-auto -my-3 lg:mb-12">
29
29
  <ul class="flex flex-wrap">
30
30
  {% url 'admin:index' as link %}
@@ -62,8 +62,8 @@
62
62
  {% endif %}
63
63
 
64
64
  <div class="flex -mx-4 module{% if cl.has_filters %} filtered{% endif %}" id="changelist" x-data="{ changeListWidth: 0 }">
65
- <div class="changelist-form-container flex flex-row flex-grow gap-6 min-w-0 px-4">
66
- <div class="flex-grow min-w-0 lg:pb-16" x-resize="changeListWidth = $width">
65
+ <div class="changelist-form-container flex flex-row grow gap-6 min-w-0 px-4">
66
+ <div class="grow min-w-0" x-resize="changeListWidth = $width">
67
67
  {% block date_hierarchy %}
68
68
  {% if cl.date_hierarchy %}
69
69
  {% date_hierarchy cl %}
@@ -75,14 +75,14 @@
75
75
  {% endif %}
76
76
 
77
77
  {% spaceless %}
78
- <div class="flex flex-col gap-4 mb-4 sm:flex-row empty:hidden lg:border lg:border-base-200 lg:dark:border-base-800 lg:-mb-8 lg:p-3 lg:pb-11 lg:rounded-t">
78
+ <div class="flex flex-col gap-4 mb-4 sm:flex-row empty:hidden lg:border lg:border-base-200 lg:dark:border-base-800 lg:-mb-8 lg:p-3 lg:pb-11 lg:rounded-t-default">
79
79
  {% block search %}
80
80
  {% search_form cl %}
81
81
  {% endblock %}
82
82
 
83
83
  {% block filters %}
84
84
  {% if cl.has_filters %}
85
- <a class="{% if cl.has_active_filters %}bg-primary-600 border-primary-600 text-white{% else %}bg-white border-base-200 hover:text-primary-600 dark:bg-base-900 dark:border-base-700 dark:hover:text-primary-500{% endif %} border cursor-pointer flex font-medium gap-2 group items-center px-3 py-2 rounded shadow-sm text-sm lg:ml-auto md:mt-0 {% if not cl.model_admin.list_filter_sheet %}2xl:hidden{% endif %}" x-on:click="filterOpen = true" x-on:keydown.escape.window="filterOpen = false">
85
+ <a class="{% if cl.has_active_filters %}bg-primary-600 border-primary-600 text-white{% else %}bg-white border-base-200 hover:text-primary-600 dark:bg-base-900 dark:border-base-700 dark:hover:text-primary-500{% endif %} border cursor-pointer flex font-medium gap-2 group items-center px-3 py-2 rounded-default shadow-xs text-sm lg:ml-auto md:mt-0 {% if not cl.model_admin.list_filter_sheet %}2xl:hidden{% endif %}" x-on:click="filterOpen = true" x-on:keydown.escape.window="filterOpen = false">
86
86
  {% trans "Filters" %}
87
87
 
88
88
  <span class="material-symbols-outlined md-18 ml-auto">filter_list</span>
@@ -103,10 +103,6 @@
103
103
  {% include "unfold/helpers/change_list_actions.html" %}
104
104
 
105
105
  {% unfold_result_list cl %}
106
-
107
- {% block pagination %}
108
- {% pagination cl %}
109
- {% endblock %}
110
106
  {% endblock %}
111
107
  </form>
112
108
 
@@ -122,3 +118,9 @@
122
118
  </div>
123
119
  </div>
124
120
  {% endblock %}
121
+
122
+ {% block footer %}
123
+ {% block pagination %}
124
+ {% include "unfold/helpers/pagination.html" %}
125
+ {% endblock %}
126
+ {% endblock %}
@@ -7,7 +7,7 @@
7
7
  {% endif %}
8
8
 
9
9
  {% if results %}
10
- <div class="-mx-1 px-1 overflow-x-auto lg:border lg:border-base-200 lg:mx-0 lg:px-0 lg:rounded lg:shadow-sm lg:dark:border-base-800 lg:bg-white lg:dark:bg-base-900 {% if cl.model_admin.list_horizontal_scrollbar_top %}simplebar-horizontal-scrollbar-top{% endif %}" data-simplebar data-simplebar-auto-hide="false">
10
+ <div class="{% if cl.search_fields or cl.has_filters %}lg:rounded-b-default{% else %}lg:rounded-default{% endif %} -mx-1 px-1 overflow-x-auto lg:border lg:border-base-200 lg:mx-0 lg:px-0 lg:shadow-xs lg:dark:border-base-800 lg:bg-white lg:dark:bg-base-900 {% if cl.model_admin.list_horizontal_scrollbar_top %}simplebar-horizontal-scrollbar-top{% endif %}" data-simplebar data-simplebar-auto-hide="false">
11
11
  <table id="result_list" class="block border-base-200 border-spacing-none border-separate w-full lg:table">
12
12
  <thead>
13
13
  <tr>
@@ -79,13 +79,13 @@
79
79
  </tr>
80
80
  {% endif %}
81
81
 
82
- <tr class="{% cycle '' 'bg-base-50 dark:bg-white/[.02]' %} block border mb-3 rounded shadow-sm lg:table-row lg:border-none lg:mb-0 lg:shadow-none dark:border-base-800">
82
+ <tr class="{% cycle '' 'bg-base-50 dark:bg-white/[.02]' %} block border border-base-200 mb-3 rounded-default shadow-xs lg:table-row lg:border-none lg:mb-0 lg:shadow-none dark:border-base-800">
83
83
  {% if cl.model_admin.list_sections|length > 0 %}
84
84
  <td class="align-middle cursor-pointer flex border-b border-base-200 font-normal px-2.5 py-2 relative text-left before:font-semibold before:text-font-important-light before:block before:capitalize before:content-[attr(data-label)] before:mr-auto lg:before:hidden lg:border-b-0 lg:border-t lg:pl-3 lg:pr-0 lg:py-3 lg:table-cell dark:border-base-800 dark:lg:border-base-800 dark:before:text-font-important-dark lg:w-px"
85
85
  data-label="{% trans "Expand row" %}"
86
86
  x-on:click="rowOpen = !rowOpen">
87
87
  <div class="absolute bg-primary-600 -bottom-px hidden left-0 top-0 w-0.5 z-10 lg:block" x-show="rowOpen"></div>
88
- <span class="material-symbols-outlined select-none !block -rotate-90 transition-all" x-bind:class="rowOpen && 'rotate-0'">
88
+ <span class="material-symbols-outlined select-none block! -rotate-90 transition-all" x-bind:class="rowOpen && 'rotate-0'">
89
89
  expand_more
90
90
  </span>
91
91
  </td>
@@ -100,7 +100,7 @@
100
100
 
101
101
  {% if cl.model_admin.list_sections|length > 0 %}
102
102
  <tr class="block mb-3 lg:table-row" x-show="rowOpen">
103
- <td colspan="{{ result|length|add:2 }}" class="border bg-base-200/10 block border-base-200 relative rounded p-3 lg:shadow-inner lg:border-0 lg:border-t lg:rounded-none lg:table-cell dark:border-base-800">
103
+ <td colspan="{{ result|length|add:2 }}" class="border bg-base-200/10 block border-base-200 relative rounded-default p-3 lg:shadow-inner lg:border-0 lg:border-t lg:rounded-none lg:table-cell dark:border-base-800">
104
104
  <div class="absolute bg-primary-600 h-full hidden left-0 top-0 w-0.5 lg:block"></div>
105
105
 
106
106
  <div class="grid gap-3 {{ cl.model_admin.list_sections_classes }}">
@@ -1,6 +1,6 @@
1
1
  {% if show %}
2
2
  <div class="mb-4">
3
- <ul class="toplinks flex -mx-2 text-sm">
3
+ <ul class="toplinks flex flex-wrap -mx-2">
4
4
  {% block date-hierarchy-toplinks %}
5
5
  {% block date-hierarchy-back %}
6
6
  {% if back %}
@@ -10,7 +10,7 @@
10
10
  {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation{% endblock %}
11
11
 
12
12
  {% block breadcrumbs %}
13
- <div class="px-4 lg:px-8">
13
+ <div class="px-4">
14
14
  <div class="container mb-6 mx-auto -my-3 lg:mb-12">
15
15
  <ul class="flex flex-wrap">
16
16
  {% url 'admin:index' as link %}
@@ -32,7 +32,7 @@
32
32
 
33
33
  {% block content %}
34
34
  {% if perms_lacking %}
35
- <div class="border border-base-200 rounded shadow-sm dark:border-base-800">
35
+ <div class="border border-base-200 rounded-default shadow-xs dark:border-base-800">
36
36
  <p class="font-semibold p-4 text-font-important-light dark:text-font-important-dark">
37
37
  {% blocktranslate with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktranslate %}
38
38
  </p>
@@ -48,7 +48,7 @@
48
48
  </div>
49
49
  </div>
50
50
  {% elif protected %}
51
- <div class="border border-base-200 rounded shadow-sm dark:border-base-800">
51
+ <div class="border border-base-200 rounded-default shadow-xs dark:border-base-800">
52
52
  <p class="font-semibold p-4 text-font-important-light dark:text-font-important-dark">
53
53
  {% blocktranslate with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' would require deleting the following protected related objects:{% endblocktranslate %}
54
54
  </p>
@@ -64,7 +64,7 @@
64
64
  </div>
65
65
  </div>
66
66
  {% else %}
67
- <div class="border border-base-200 rounded shadow-sm dark:border-base-800">
67
+ <div class="border border-base-200 rounded-default shadow-xs dark:border-base-800">
68
68
  <p class="font-semibold p-4 text-font-important-light dark:text-font-important-dark">
69
69
  {% blocktranslate with escaped_object=object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktranslate %}
70
70
  </p>
@@ -10,7 +10,7 @@
10
10
  {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation delete-selected-confirmation{% endblock %}
11
11
 
12
12
  {% block breadcrumbs %}
13
- <div class="px-4 lg:px-8">
13
+ <div class="px-4">
14
14
  <div class="container mb-6 mx-auto -my-3 lg:mb-12">
15
15
  <ul class="flex flex-wrap">
16
16
  {% url 'admin:index' as link %}
@@ -45,7 +45,7 @@
45
45
  </ul>
46
46
  </div>
47
47
  {% elif protected %}
48
- <div class="border border-base-200 rounded shadow-sm dark:border-base-800">
48
+ <div class="border border-base-200 rounded-default shadow-xs dark:border-base-800">
49
49
  <p class="font-semibold p-4 text-font-important-light dark:text-font-important-dark">
50
50
  {% blocktranslate %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktranslate %}
51
51
  </p>
@@ -59,7 +59,7 @@
59
59
  </div>
60
60
  </div>
61
61
  {% else %}
62
- <div class="border border-base-200 rounded shadow-sm dark:border-base-800">
62
+ <div class="border border-base-200 rounded-default shadow-xs dark:border-base-800">
63
63
  <p class="font-semibold p-4 text-font-important-light dark:text-font-important-dark">
64
64
  {% blocktranslate %}Are you sure you want to delete the selected {{ objects_name }}? All of the following objects and their related items will be deleted:{% endblocktranslate %}
65
65
  </p>
@@ -4,7 +4,7 @@
4
4
  <fieldset class="module relative {{ inline_admin_formset.classes }}" aria-labelledby="{{ inline_admin_formset.formset.prefix }}-heading">
5
5
  {% if inline_admin_formset.is_collapsible %}<details><summary>{% endif %}
6
6
 
7
- <h2 id="{{ inline_admin_formset.formset.prefix }}-heading" class="inline-heading bg-base-100 font-semibold mb-6 px-4 py-3 rounded text-font-important-light lg:-mx-4 dark:bg-white/[.02] dark:text-font-important-dark {% if inline_admin_formset.opts.tab %}hidden{% endif %} {% if inline_admin_formset.is_collapsible %} cursor-pointer{% endif %}">
7
+ <h2 id="{{ inline_admin_formset.formset.prefix }}-heading" class="inline-heading bg-base-100 font-semibold mb-6 px-4 py-3 rounded-default text-font-important-light 2xl:-mx-4 dark:bg-white/[.02] dark:text-font-important-dark {% if inline_admin_formset.opts.tab %}hidden{% endif %} {% if inline_admin_formset.is_collapsible %} cursor-pointer{% endif %}">
8
8
  {% if inline_admin_formset.formset.max_num == 1 %}
9
9
  {{ inline_admin_formset.opts.verbose_name|capfirst }}
10
10
  {% else %}
@@ -17,7 +17,7 @@
17
17
  {{ inline_admin_formset.formset.management_form }}
18
18
  {% include "unfold/helpers/messages/error.html" with errors=inline_admin_formset.formset.non_form_errors %}
19
19
 
20
- <div class="border border-base-200 mb-6 overflow-hidden rounded shadow-sm w-full dark:border-base-800 *:border-t first:*:border-t-0 *:border-base-200 dark:*:border-base-800"
20
+ <div class="border border-base-200 mb-6 overflow-hidden rounded-default shadow-xs w-full dark:border-base-800 *:border-t *:first:border-t-0 *:border-base-200 dark:*:border-base-800"
21
21
  {% if inline_admin_formset.opts.ordering_field %}
22
22
  data-ordering-field="{{ inline_admin_formset.opts.ordering_field }}" x-on:end="sortRecords" x-sort.ghost
23
23
  {% endif %}>
@@ -7,7 +7,7 @@
7
7
  <fieldset class="module relative {{ inline_admin_formset.classes }} min-w-0" aria-labelledby="{{ inline_admin_formset.formset.prefix }}-heading">
8
8
  {% if inline_admin_formset.is_collapsible %}<details><summary>{% endif %}
9
9
 
10
- <h2 id="{{ inline_admin_formset.formset.prefix }}-heading" class="bg-base-100 border border-transparent font-semibold mb-6 px-4 py-3 rounded text-font-important-light text-sm lg:-mx-4 dark:bg-white/[.02] dark:text-font-important-dark {% if inline_admin_formset.opts.tab %}hidden{% endif %} {% if inline_admin_formset.is_collapsible %} cursor-pointer{% endif %}">
10
+ <h2 id="{{ inline_admin_formset.formset.prefix }}-heading" class="bg-base-100 border border-transparent font-semibold mb-6 px-4 py-3 rounded-default text-font-important-light text-sm 2xl:-mx-4 dark:bg-white/[.02] dark:text-font-important-dark {% if inline_admin_formset.opts.tab %}hidden{% endif %} {% if inline_admin_formset.is_collapsible %} cursor-pointer{% endif %}">
11
11
  {% if inline_admin_formset.formset.max_num == 1 %}
12
12
  {{ inline_admin_formset.opts.verbose_name|capfirst }}
13
13
  {% else %}
@@ -18,8 +18,8 @@
18
18
  {% if inline_admin_formset.is_collapsible %}</summary>{% endif %}
19
19
 
20
20
  {{ inline_admin_formset.formset.non_form_errors }}
21
- <div class="border border-base-200 mb-6 overflow-x-auto rounded shadow-sm dark:border-base-800" data-simplebar data-simplebar-auto-hide="false">
22
- <table class="tabular-table w-full [&>tbody:nth-child(odd)]:bg-base-50 [&>tbody:nth-child(odd)]:dark:bg-white/[.02]" {% if inline_admin_formset.opts.ordering_field %}data-ordering-field="{{ inline_admin_formset.opts.ordering_field }}" x-on:end="sortRecords" x-sort.ghost{% endif %}>
21
+ <div class="border border-base-200 mb-6 overflow-x-auto rounded-default shadow-xs dark:border-base-800" data-simplebar data-simplebar-auto-hide="false">
22
+ <table class="tabular-table w-full [&>tbody:nth-child(odd)]:bg-base-50 dark:[&>tbody:nth-child(odd)]:bg-white/[.02]" {% if inline_admin_formset.opts.ordering_field %}data-ordering-field="{{ inline_admin_formset.opts.ordering_field }}" x-on:end="sortRecords" x-sort.ghost x-sort:config="{preventOnFilter: false}"{% endif %}>
23
23
  {% include "unfold/helpers/edit_inline/tabular_heading.html" %}
24
24
 
25
25
  {% for inline_admin_form in inline_admin_formset %}
@@ -12,9 +12,9 @@
12
12
  {% endfor %}
13
13
 
14
14
  {% if spec|class_name == "BooleanFieldListFilter" or spec.horizontal %}
15
- <ul class="dark:bg-base-900 border border-base-200 flex min-w-20 rounded shadow-sm text-font-default-light dark:border-base-700 dark:text-font-default-dark w-full">
15
+ <ul class="dark:bg-base-900 border border-base-200 flex min-w-20 rounded-default shadow-xs text-font-default-light dark:border-base-700 dark:text-font-default-dark w-full">
16
16
  {% for choice in choices %}
17
- <li class="basis-1/3 border-r border-base-200 flex-grow truncate last:border-r-0 dark:border-base-700 {% if choice.selected %}font-semibold text-primary-600 dark:text-primary-500 {% else %}hover:text-base-700 dark:hover:text-base-200{% endif %}">
17
+ <li class="basis-1/3 border-r border-base-200 grow truncate last:border-r-0 dark:border-base-700 {% if choice.selected %}font-semibold text-primary-600 dark:text-primary-500 {% else %}hover:text-base-700 dark:hover:text-base-200{% endif %}">
18
18
  <a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}" class="block py-2 text-center hover:text-primary-600 dark:hover:text-primary-500">
19
19
  {{ choice.display }}
20
20
  </a>
@@ -22,7 +22,7 @@
22
22
  {% endfor %}
23
23
  </ul>
24
24
  {% else %}
25
- <ul class="border flex flex-col rounded shadow-sm dark:border-base-700">
25
+ <ul class="border border-base-200 flex flex-col rounded-default shadow-xs dark:border-base-700">
26
26
  {% for choice in choices %}
27
27
  <li class="border-b border-base-200 last:border-b-0 dark:border-base-700 {% if choice.selected %}font-semibold text-primary-600 dark:text-primary-500 {% else %}hover:text-base-700 dark:hover:text-base-200{% endif %}">
28
28
  <a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}" class="block px-3 py-2 hover:text-primary-600 dark:hover:text-primary-500">
@@ -2,7 +2,7 @@
2
2
 
3
3
  <fieldset class="module{% if fieldset.classes %} {{ fieldset.classes }}{% endif %}" {% if stacked != 1 %}x-show="activeTab == 'general'"{% endif %}>
4
4
  {% if fieldset.name and "tab" not in fieldset.classes %}
5
- <h2 class="bg-base-100 font-semibold mb-6 px-4 py-3 rounded text-font-important-light text-sm lg:-mx-4 dark:bg-white/[.02] dark:text-font-important-dark">
5
+ <h2 class="bg-base-100 font-semibold mb-6 px-4 py-3 rounded-default text-font-important-light text-sm 2xl:-mx-4 dark:bg-white/[.02] dark:text-font-important-dark">
6
6
  {{ fieldset.name }}
7
7
  </h2>
8
8
  {% endif %}
@@ -12,7 +12,7 @@
12
12
 
13
13
  {% block content %}
14
14
  <div class="flex flex-col lg:flex-row lg:gap-8">
15
- <div class="flex-grow">
15
+ <div class="grow">
16
16
  {% include "unfold/helpers/app_list_default.html" %}
17
17
  </div>
18
18
 
@@ -24,8 +24,8 @@
24
24
  {% endblock %}
25
25
 
26
26
  {% block base %}
27
- <div id="page" class="flex min-h-screen">
28
- <div class="flex flex-grow items-center justify-center mx-auto px-4 relative">
27
+ <div id="page" class="bg-white flex min-h-screen dark:bg-base-900 ">
28
+ <div class="flex grow items-center justify-center mx-auto px-4 relative">
29
29
  <div class="w-full sm:w-96">
30
30
  <h1 class="font-semibold mb-10">
31
31
  <span class="block text-font-important-light dark:text-font-important-dark">{% trans 'Welcome back to' %}</span>
@@ -63,16 +63,16 @@
63
63
  {% url 'admin_password_reset' as password_reset_url %}
64
64
 
65
65
  <div class="submit-row">
66
- <button type="submit" class="bg-primary-600 border border-transparent flex flex-row font-semibold group items-center justify-center py-2 rounded text-sm text-white w-full">
66
+ <button type="submit" class="bg-primary-600 border border-transparent flex flex-row font-semibold group items-center justify-center py-2 rounded-default text-sm text-white w-full">
67
67
  {% translate 'Log in' %}
68
68
 
69
- <i class="material-symbols-outlined ml-2 relative right-0 text-lg transition-all group-hover:-right-1">arrow_forward</i>
69
+ <span class="material-symbols-outlined ml-2 relative right-0 text-base transition-all group-hover:-right-1">arrow_forward</span>
70
70
  </button>
71
71
  </div>
72
72
 
73
73
  {% if password_reset_url %}
74
74
  <div class="password-reset-link">
75
- <a href="{{ password_reset_url }}" class="border border-base-200 font-medium hidden mt-4 px-3 py-2 rounded text-center text-sm text-base-500 transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:text-font-default-dark dark:hover:text-base-200 dark:hover:bg-base-900">
75
+ <a href="{{ password_reset_url }}" class="border border-base-200 font-medium hidden mt-4 px-3 py-2 rounded-default text-center text-sm text-base-500 transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:text-font-default-dark dark:hover:text-base-200 dark:hover:bg-base-900">
76
76
  {% translate 'Forgotten your password or username?' %}
77
77
  </a>
78
78
  </div>
@@ -98,7 +98,7 @@
98
98
  </div>
99
99
 
100
100
  {% if image %}
101
- <div class="bg-cover flex-grow hidden max-w-3xl xl:max-w-4xl xl:block" style="background-image: url('{{ image }}')">
101
+ <div class="bg-cover grow hidden max-w-3xl xl:max-w-4xl xl:block" style="background-image: url('{{ image }}')">
102
102
  </div>
103
103
  {% endif %}
104
104
  </div>
@@ -1,7 +1,15 @@
1
- {% load i18n %}
1
+ {% load i18n unfold %}
2
2
 
3
3
  <div class="relative z-50">
4
- <div class="fixed hidden xl:relative xl:block" x-bind:class="{'xl:!hidden': !sidebarDesktopOpen, '!block': sidebarMobileOpen}">
5
- {% include "unfold/helpers/navigation.html" %}
4
+ <div class="fixed hidden xl:relative xl:block w-[288px] {% element_classes 'navigation_wrapper' %}" x-bind:class="{'xl:hidden!': !sidebarDesktopOpen, 'block!': sidebarMobileOpen}">
5
+ <div class="bg-gray-50 relative z-30 dark:bg-gray-900">
6
+ <div id="nav-sidebar" class="bg-base-50 border-r border-base-200 bottom-0 fixed max-h-screen top-0 w-[288px] dark:border-base-800 dark:bg-base-900 {% element_classes 'navigation' %}">
7
+ {% if templates.navigation %}
8
+ {% include templates.navigation %}
9
+ {% else %}
10
+ {% include "unfold/helpers/navigation.html" %}
11
+ {% endif %}
12
+ </div>
13
+ </div>
6
14
  </div>
7
15
  </div>
@@ -2,7 +2,7 @@
2
2
  {% load i18n admin_urls %}
3
3
 
4
4
  {% block breadcrumbs %}
5
- <div class="px-4 lg:px-8">
5
+ <div class="px-4">
6
6
  <div class="container mb-12 mx-auto -my-3">
7
7
  <ul class="flex flex-wrap">
8
8
  {% url 'admin:index' as link %}
@@ -27,7 +27,7 @@
27
27
 
28
28
  {% block content %}
29
29
  {% if action_list %}
30
- <table class="border-base-200 border-spacing-none border-separate mb-6 w-full lg:border lg:rounded lg:shadow-sm lg:dark:border-base-800">
30
+ <table class="border-base-200 border-spacing-none border-separate mb-6 w-full lg:border lg:rounded-default lg:shadow-xs lg:dark:border-base-800">
31
31
  <thead class="hidden lg:table-header-group text-base-900 dark:text-base-100">
32
32
  <tr>
33
33
  <th class="align-middle font-medium px-3 py-2 text-left">
@@ -46,7 +46,7 @@
46
46
 
47
47
  <tbody>
48
48
  {% for action in action_list %}
49
- <tr class="block border mb-3 rounded shadow-sm lg:table-row lg:border-none lg:mb-0 lg:shadow-none dark:border-base-800">
49
+ <tr class="block border mb-3 rounded-default shadow-xs lg:table-row lg:border-none lg:mb-0 lg:shadow-none dark:border-base-800">
50
50
  <th class="align-middle flex border-t border-base-200 font-normal px-3 py-2 text-left before:flex before:capitalize before:content-[attr(data-label)] before:items-center before:mr-auto first:border-t-0lg:before:hidden lg:first:border-t lg:py-3 lg:table-cell dark:border-base-800" data-label="{% translate 'Date/time' %}">
51
51
  {{ action.action_time|date:"DATETIME_FORMAT" }}
52
52
  </th>
@@ -63,7 +63,7 @@
63
63
  </tbody>
64
64
  </table>
65
65
 
66
- <div class="bg-base-50 flex my-4 items-center p-3 rounded dark:bg-base-800">
66
+ <div class="bg-base-50 flex my-4 items-center p-3 rounded-default dark:bg-base-800">
67
67
  {% if pagination_required %}
68
68
  {% for i in page_range %}
69
69
  <span class="pr-4">
@@ -1,29 +1,23 @@
1
- {% load unfold_list i18n %}
1
+ {% load unfold unfold_list i18n %}
2
2
 
3
- <div {% if not is_popup %}id="submit-row"{% endif %} class="relative z-20">
4
- <div class="{% if not is_popup %}max-w-full 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 %} x-bind:style="'width: ' + mainWidth + 'px'">
5
- <div class="lg:backdrop-blur-sm lg:bg-white/80 lg:flex lg:items-center lg:dark:bg-base-900/80 {% if not is_popup %}lg:border-t lg:border-base-200 lg:h-[71px] lg:py-2 lg:relative lg:scrollable-top lg:px-8 lg:dark:border-base-800{% endif %}">
6
- <div class="flex flex-row items-center {% if not cl.model_admin.list_fullwidth %}lg:mx-auto{% endif %}" x-bind:style="'width: ' + changeListWidth + 'px'">
7
- {% if cl.paginator.template_name %}
8
- {% include cl.paginator.template_name %}
9
- {% else %}
10
- {% include "unfold/helpers/pagination_default.html" %}
11
- {% endif %}
3
+ <div class="flex flex-row grow items-center lg:h-[64px] {% if not cl.model_admin.list_fullwidth %}container mx-auto{% endif %}">
4
+ {% if cl.paginator.template_name %}
5
+ {% include cl.paginator.template_name %}
6
+ {% else %}
7
+ {% include "unfold/helpers/pagination_default.html" %}
8
+ {% endif %}
12
9
 
13
- {% if show_all_url %}
14
- <a href="{{ show_all_url }}" class="showall ml-4 text-primary-600 dark:text-primary-500">
15
- {% translate 'Show all' %}
16
- </a>
17
- {% endif %}
10
+ {% if show_all_url %}
11
+ <a href="{{ show_all_url }}" class="showall ml-4 text-primary-600 dark:text-primary-500">
12
+ {% translate 'Show all' %}
13
+ </a>
14
+ {% endif %}
18
15
 
19
- {% if cl.formset and cl.result_count %}
20
- <div class="ml-auto">
21
- <button type="submit" name="_save" class="bg-primary-600 block border border-transparent font-medium px-3 py-2 rounded text-white w-full">
22
- {% translate 'Save' %}
23
- </button>
24
- </div>
25
- {% endif %}
26
- </div>
16
+ {% if cl.formset and cl.result_count %}
17
+ <div class="ml-auto">
18
+ <button type="submit" name="_save" form="changelist-form" class="bg-primary-600 block border border-transparent font-medium px-3 py-2 rounded-default text-white w-full">
19
+ {% translate 'Save' %}
20
+ </button>
27
21
  </div>
28
- </div>
22
+ {% endif %}
29
23
  </div>
@@ -3,10 +3,10 @@
3
3
  {% if cl.search_fields %}
4
4
  <div id="toolbar">
5
5
  <form id="changelist-search" method="get" role="search">
6
- <div class="bg-white border border-base-200 flex rounded overflow-hidden shadow-sm lg:w-96 focus-within:ring focus-within:ring-primary-300 focus-within:border-primary-600 dark:bg-base-900 dark:border-base-700 dark:focus-within:border-primary-600 dark:focus-within:ring-primary-700 dark:focus-within:ring-opacity-50">
7
- <input class="font-medium grow min-w-0 h-9 px-3 text-font-default-light text-sm focus:outline-none dark:bg-base-900 dark:text-font-default-dark placeholder-shown:truncate placeholder-base-400" type="text" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" placeholder="{% if cl.search_help_text %}{{ cl.search_help_text }}{% else %}{% trans "Type to search" %}{% endif %}" />
6
+ <div class="bg-white border border-base-200 flex rounded-default overflow-hidden shadow-xs lg:w-96 focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-primary-600 dark:bg-base-900 dark:border-base-700">
7
+ <input class="font-medium grow min-w-0 h-9 px-3 text-font-default-light text-sm focus:outline-hidden dark:bg-base-900 dark:text-font-default-dark placeholder-shown:truncate placeholder-base-400" type="text" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" placeholder="{% if cl.search_help_text %}{{ cl.search_help_text }}{% else %}{% trans "Type to search" %}{% endif %}" />
8
8
 
9
- <button type="submit" class="flex items-center px-2 focus:outline-none" id="searchbar-submit">
9
+ <button type="submit" class="flex items-center px-2 focus:outline-hidden" id="searchbar-submit">
10
10
  <span class="material-symbols-outlined md-18 text-base-400 dark:text-base-500">search</span>
11
11
  </button>
12
12
  </div>
@@ -1,70 +1,67 @@
1
1
  {% load i18n admin_urls %}
2
2
 
3
- <div {% if not is_popup %}id="submit-row"{% endif %} class="relative {% if not is_popup %}lg:mt-16{% endif %} z-20">
4
- <div class="{% if not is_popup %}max-w-full 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}" x-bind:style="'width: ' + mainWidth + 'px'"{% endif %}>
5
- <div class="backdrop-blur-sm bg-white/80 pb-4 dark:bg-base-900/80 {% if not is_popup %}lg:border-t lg:border-base-200 lg:py-4 relative lg:scrollable-top lg:px-8 dark:border-base-800{% endif %}">
6
- <div class="flex flex-col-reverse gap-3 items-center mx-auto lg:flex-row-reverse" x-bind:style="'width: ' + changeFormWidth + 'px'">
7
- {% block submit-row %}
8
- {% if show_save %}
9
- <button type="submit" name="_save" class="bg-primary-600 block border border-transparent font-medium px-3 py-2 rounded text-white w-full lg:w-auto">
10
- {% translate 'Save' %}
11
- </button>
12
- {% endif %}
3
+ <div {% if not is_popup %}id="submit-row"{% endif %} class="relative lg:sticky lg:bottom-0 z-40">
4
+ <div class="backdrop-blur-xs bg-white/80 rounded-b-default pb-4 px-4 dark:bg-base-900/80 {% if not is_popup %}lg:border-t lg:border-base-200 relative lg:scrollable-top lg:py-0 dark:border-base-800{% endif %}">
5
+ <div class="flex flex-col-reverse gap-3 items-center mx-auto lg:flex-row-reverse container lg:h-[64px]">
6
+ {% block submit-row %}
7
+ {% if show_save %}
8
+ <button type="submit" form="{{ opts.model_name }}_form" name="_save" class="bg-primary-600 block border border-transparent font-medium px-3 py-2 rounded-default text-white w-full lg:w-auto">
9
+ {% translate 'Save' %}
10
+ </button>
11
+ {% endif %}
13
12
 
14
- {% for action in actions_submit_line %}
15
- <button type="submit" {% if not action.attrs.name %}name="{{ action.action_name }}"{% endif %} class="border border-base-200 flex font-medium gap-2 items-center px-3 py-2 rounded transition-all w-full hover:bg-base-50 lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900" {% include "unfold/helpers/attrs.html" with attrs=action.attrs %}>
16
- {% if action.icon %}
17
- <span class="material-symbols-outlined">
18
- {{ action.icon }}
19
- </span>
20
- {% endif %}
13
+ {% for action in actions_submit_line %}
14
+ <button type="submit" form="{{ opts.model_name }}_form" {% if not action.attrs.name %}name="{{ action.action_name }}"{% endif %} class="border border-base-200 flex font-medium gap-2 items-center px-3 py-2 rounded-default transition-all w-full hover:bg-base-50 lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900" {% include "unfold/helpers/attrs.html" with attrs=action.attrs %}>
15
+ {% if action.icon %}
16
+ <span class="material-symbols-outlined">
17
+ {{ action.icon }}
18
+ </span>
19
+ {% endif %}
21
20
 
22
- {{ action.description }}
23
- </button>
24
- {% endfor %}
21
+ {{ action.description }}
22
+ </button>
23
+ {% endfor %}
25
24
 
26
- {% if show_save_and_continue %}
27
- <button type="submit" name="_continue" class="border border-base-200 font-medium px-3 py-2 rounded transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900">
28
- {% if can_change %}
29
- {% translate 'Save and continue editing' %}
30
- {% else %}
31
- {% translate 'Save and view' %}
32
- {% endif %}
33
- </button>
34
- {% endif %}
25
+ {% if show_save_and_continue %}
26
+ <button type="submit" form="{{ opts.model_name }}_form" name="_continue" class="border border-base-200 font-medium px-3 py-2 rounded-default transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900">
27
+ {% if can_change %}
28
+ {% translate 'Save and continue editing' %}
29
+ {% else %}
30
+ {% translate 'Save and view' %}
31
+ {% endif %}
32
+ </button>
33
+ {% endif %}
35
34
 
36
- {% if show_save_and_add_another %}
37
- <button type="submit" name="_addanother" class="border border-base-200 font-medium px-3 py-2 rounded transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900">
38
- {% translate 'Save and add another' %}
39
- </button>
40
- {% endif %}
35
+ {% if show_save_and_add_another %}
36
+ <button type="submit" form="{{ opts.model_name }}_form" name="_addanother" class="border border-base-200 font-medium px-3 py-2 rounded-default transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900">
37
+ {% translate 'Save and add another' %}
38
+ </button>
39
+ {% endif %}
41
40
 
42
- {% if show_save_as_new %}
43
- <button type="submit" name="_saveasnew" class="border border-base-200 font-medium px-3 py-2 rounded transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900">
44
- {% translate 'Save as new' %}
45
- </button>
46
- {% endif %}
41
+ {% if show_save_as_new %}
42
+ <button type="submit" form="{{ opts.model_name }}_form" name="_saveasnew" class="border border-base-200 font-medium px-3 py-2 rounded-default transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900">
43
+ {% translate 'Save as new' %}
44
+ </button>
45
+ {% endif %}
47
46
 
48
- <div class="flex flex-col gap-3 mr-auto w-full lg:flex-row lg:w-auto">
49
- {% if show_close or adminform.model_admin.change_form_show_cancel_button %}
50
- {% url opts|admin_urlname:'changelist' as changelist_url %}
47
+ <div class="flex flex-col gap-3 mr-auto w-full lg:flex-row lg:w-auto">
48
+ {% if show_close or adminform.model_admin.change_form_show_cancel_button %}
49
+ {% url opts|admin_urlname:'changelist' as changelist_url %}
51
50
 
52
- <a href="{% add_preserved_filters changelist_url %}" class="border border-base-200 font-medium px-3 py-2 rounded text-center transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900">
53
- {% translate 'Close' %}
54
- </a>
55
- {% endif %}
56
-
57
- {% if show_delete_link and original %}
58
- {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
51
+ <a href="{% add_preserved_filters changelist_url %}" class="border border-base-200 font-medium px-3 py-2 rounded-default text-center transition-all w-full hover:bg-base-50 lg:block lg:w-auto dark:border-base-700 dark:hover:text-base-200 dark:hover:bg-base-900">
52
+ {% translate 'Close' %}
53
+ </a>
54
+ {% endif %}
59
55
 
56
+ {% if show_delete_link and original %}
57
+ {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
60
58
 
61
- <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 text-center text-white w-full lg:w-auto dark:bg-red-500/20 dark:text-red-500">
62
- {% translate "Delete" %} {{ opts.verbose_name }}
63
- </a>
64
- {% endif %}
65
- </div>
66
- {% endblock %}
67
- </div>
59
+ <a href="{% add_preserved_filters delete_url %}" class="bg-red-600 flex items-center justify-center font-medium h-[38px] ml-auto px-3 py-2 rounded-default text-center text-white w-full lg:w-auto dark:bg-red-500/20 dark:text-red-500">
60
+ {% translate "Delete" %} {{ opts.verbose_name }}
61
+ </a>
62
+ {% endif %}
63
+ </div>
64
+ {% endblock %}
68
65
  </div>
69
66
  </div>
70
67
  </div>
@@ -1,5 +1,5 @@
1
1
  <div class="table table-fixed w-full">
2
- <div class="readonly bg-base-50 border font-medium max-w-2xl px-3 py-2 rounded shadow-sm dark:bg-white/[.02] dark:border-base-700 {% if summary|length > 1 %} text-ellipsis overflow-hidden whitespace-nowrap w-full{% endif %}" {% include 'django/forms/widgets/attrs.html' %}>
2
+ <div class="readonly bg-base-50 border border-base-200 font-medium max-w-2xl px-3 py-2 rounded-default shadow-xs dark:bg-white/[.02] dark:border-base-700 {% if summary|length > 1 %} text-ellipsis overflow-hidden whitespace-nowrap w-full{% endif %}" {% include 'django/forms/widgets/attrs.html' %}>
3
3
  {% if summary|length > 1 %}
4
4
  {% for entry in summary %}
5
5
  <strong class="font-semibold text-font-important-light dark:text-font-important-dark">{{ entry.label }}</strong>{% if entry.value %}: {{ entry.value }}{% endif %}
@@ -3,20 +3,18 @@
3
3
  {% load i18n %}
4
4
 
5
5
  {% block base %}
6
- <div id="page" class="flex min-h-screen">
7
- <div class="flex flex-grow items-center justify-center mx-auto px-4">
6
+ <div id="page" class="bg-white flex min-h-screen dark:bg-base-900 ">
7
+ <div class="flex grow items-center justify-center mx-auto px-4">
8
8
  <div class="w-full sm:w-96">
9
- <h1 class="font-semibold mb-4 text-xl">
10
- <span class="block leading-relaxed text-base-700 dark:text-base-200">
11
- {% trans "You have been successfully logged out from the administration" %}
12
- </span>
9
+ <h1 class="font-semibold mb-4 text-font-important-light text-xl tracking-tight dark:text-font-important-dark">
10
+ {% trans "You have been successfully logged out from the administration" %}
13
11
  </h1>
14
12
 
15
- <p class="mb-10">
13
+ <p class="leading-relaxed mb-10">
16
14
  {% translate "Thanks for spending some quality time with the web site today." %}
17
15
  </p>
18
16
 
19
- <a href="{% url "admin:index" %}" class="bg-primary-600 block border border-transparent font-semibold py-2 rounded text-sm text-center text-white w-full">
17
+ <a href="{% url "admin:index" %}" class="bg-primary-600 block border border-transparent font-semibold py-2 rounded-default text-sm text-center text-white w-full">
20
18
  {% translate "Log in again" %}
21
19
  </a>
22
20
  </div>
@@ -22,7 +22,7 @@
22
22
 
23
23
  {% block content %}
24
24
  <div id="content-main">
25
- <p class="bg-primary-100 mb-8 text-primary-600 px-3 py-3 rounded text-sm">
25
+ <p class="bg-primary-100 mb-8 text-primary-600 px-3 py-3 rounded-default text-sm">
26
26
  {% translate 'Your password was changed.' %}
27
27
  </p>
28
28
  </div>
@@ -42,7 +42,7 @@
42
42
 
43
43
  {% include "unfold/helpers/field.html" with field=form.new_password2 %}
44
44
 
45
- <button type="submit" class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded text-sm text-white">
45
+ <button type="submit" class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded-default text-sm text-white">
46
46
  {% translate 'Change password' %}
47
47
  </button>
48
48
  </div>