django-unfold 0.55.2__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.
- {django_unfold-0.55.2.dist-info → django_unfold-1.0.0.dist-info}/METADATA +1 -1
- {django_unfold-0.55.2.dist-info → django_unfold-1.0.0.dist-info}/RECORD +124 -123
- {django_unfold-0.55.2.dist-info → django_unfold-1.0.0.dist-info}/WHEEL +1 -1
- unfold/contrib/filters/templates/unfold/filters/filters_numeric_slider.html +2 -2
- unfold/contrib/forms/templates/unfold/forms/array.html +5 -5
- unfold/contrib/forms/templates/unfold/forms/helpers/toolbar.html +23 -23
- unfold/contrib/forms/widgets.py +7 -7
- unfold/contrib/guardian/templates/admin/guardian/model/obj_perms_manage.html +4 -2
- unfold/contrib/guardian/templates/admin/guardian/model/obj_perms_manage_group.html +5 -3
- unfold/contrib/guardian/templates/admin/guardian/model/obj_perms_manage_user.html +5 -3
- unfold/contrib/guardian/templates/unfold/guardian/group_form.html +4 -4
- unfold/contrib/guardian/templates/unfold/guardian/user_form.html +4 -4
- unfold/contrib/import_export/templates/admin/import_export/change_form.html +1 -1
- unfold/contrib/import_export/templates/admin/import_export/export.html +4 -4
- unfold/contrib/import_export/templates/admin/import_export/import.html +1 -1
- unfold/contrib/import_export/templates/admin/import_export/import_confirm.html +2 -2
- unfold/contrib/import_export/templates/admin/import_export/import_errors.html +18 -12
- unfold/contrib/import_export/templates/admin/import_export/import_form.html +2 -2
- unfold/contrib/import_export/templates/admin/import_export/import_preview.html +2 -2
- unfold/contrib/import_export/templates/admin/import_export/import_validation.html +7 -7
- unfold/contrib/simple_history/templates/simple_history/object_history.html +3 -3
- unfold/contrib/simple_history/templates/simple_history/object_history_form.html +2 -2
- unfold/contrib/simple_history/templates/simple_history/object_history_list.html +2 -2
- unfold/contrib/simple_history/templates/simple_history/submit_line.html +4 -4
- unfold/forms.py +1 -1
- unfold/settings.py +22 -22
- unfold/sites.py +10 -5
- unfold/static/unfold/css/styles.css +2 -1
- unfold/static/unfold/fonts/material-symbols/styles.css +0 -16
- unfold/styles.css +140 -84
- unfold/templates/admin/actions.html +4 -4
- unfold/templates/admin/app_index.html +1 -1
- unfold/templates/admin/app_list.html +2 -2
- unfold/templates/admin/auth/user/add_form.html +1 -1
- unfold/templates/admin/auth/user/change_password.html +2 -2
- unfold/templates/admin/base.html +6 -6
- unfold/templates/admin/change_form.html +6 -4
- unfold/templates/admin/change_list.html +11 -9
- unfold/templates/admin/change_list_results.html +4 -4
- unfold/templates/admin/date_hierarchy.html +1 -1
- unfold/templates/admin/delete_confirmation.html +4 -4
- unfold/templates/admin/delete_selected_confirmation.html +3 -3
- unfold/templates/admin/edit_inline/stacked.html +3 -3
- unfold/templates/admin/edit_inline/tabular.html +4 -4
- unfold/templates/admin/filter.html +3 -3
- unfold/templates/admin/includes/fieldset.html +1 -1
- unfold/templates/admin/index.html +1 -1
- unfold/templates/admin/login.html +9 -7
- unfold/templates/admin/nav_sidebar.html +11 -3
- unfold/templates/admin/object_history.html +4 -4
- unfold/templates/admin/pagination.html +18 -24
- unfold/templates/admin/search_form.html +3 -3
- unfold/templates/admin/submit_line.html +53 -56
- unfold/templates/auth/widgets/read_only_password_hash.html +1 -1
- unfold/templates/registration/logged_out.html +6 -8
- unfold/templates/registration/password_change_done.html +1 -1
- unfold/templates/registration/password_change_form.html +1 -1
- unfold/templates/unfold/components/button.html +1 -1
- unfold/templates/unfold/components/card.html +5 -5
- unfold/templates/unfold/components/chart/cohort.html +2 -2
- unfold/templates/unfold/components/navigation.html +2 -2
- unfold/templates/unfold/components/progress.html +1 -1
- unfold/templates/unfold/components/table.html +3 -3
- unfold/templates/unfold/components/tracker.html +1 -1
- unfold/templates/unfold/helpers/account_links.html +7 -7
- unfold/templates/unfold/helpers/actions_row.html +3 -3
- unfold/templates/unfold/helpers/app_list.html +7 -7
- unfold/templates/unfold/helpers/app_list_default.html +2 -2
- unfold/templates/unfold/helpers/change_list_actions.html +1 -1
- unfold/templates/unfold/helpers/change_list_filter.html +4 -4
- unfold/templates/unfold/helpers/change_list_filter_actions.html +5 -5
- unfold/templates/unfold/helpers/delete_submit_line.html +2 -2
- unfold/templates/unfold/helpers/display_dropdown.html +3 -3
- unfold/templates/unfold/helpers/display_header.html +1 -1
- unfold/templates/unfold/helpers/edit_inline/tabular_delete.html +1 -1
- unfold/templates/unfold/helpers/edit_inline/tabular_field.html +1 -1
- unfold/templates/unfold/helpers/edit_inline/tabular_row.html +1 -1
- unfold/templates/unfold/helpers/edit_inline/tabular_title.html +1 -1
- unfold/templates/unfold/helpers/empty_results.html +4 -4
- unfold/templates/unfold/helpers/field_readonly_value.html +1 -1
- unfold/templates/unfold/helpers/fieldset_row_checkbox.html +2 -2
- unfold/templates/unfold/helpers/fieldset_row_field.html +1 -1
- unfold/templates/unfold/helpers/fieldsets_tabs.html +1 -1
- unfold/templates/unfold/helpers/header.html +3 -1
- unfold/templates/unfold/helpers/header_back_button.html +1 -1
- unfold/templates/unfold/helpers/history.html +2 -2
- unfold/templates/unfold/helpers/label.html +1 -1
- unfold/templates/unfold/helpers/language_switch.html +3 -3
- unfold/templates/unfold/helpers/messages/debug.html +1 -1
- unfold/templates/unfold/helpers/messages/error.html +1 -1
- unfold/templates/unfold/helpers/messages/errornote.html +1 -1
- unfold/templates/unfold/helpers/messages/info.html +1 -1
- unfold/templates/unfold/helpers/messages/success.html +1 -1
- unfold/templates/unfold/helpers/messages/warning.html +1 -1
- unfold/templates/unfold/helpers/messages.html +1 -1
- unfold/templates/unfold/helpers/navigation.html +10 -14
- unfold/templates/unfold/helpers/navigation_header.html +6 -4
- unfold/templates/unfold/helpers/pagination.html +7 -0
- unfold/templates/unfold/helpers/search.html +2 -2
- unfold/templates/unfold/helpers/search_results.html +1 -1
- unfold/templates/unfold/helpers/site_dropdown.html +2 -2
- unfold/templates/unfold/helpers/site_icon.html +6 -6
- unfold/templates/unfold/helpers/submit.html +1 -1
- unfold/templates/unfold/helpers/tab_action.html +5 -5
- unfold/templates/unfold/helpers/tab_actions.html +1 -1
- unfold/templates/unfold/helpers/tab_items.html +8 -8
- unfold/templates/unfold/helpers/tab_list.html +1 -1
- unfold/templates/unfold/helpers/theme_switch.html +8 -8
- unfold/templates/unfold/helpers/welcomemsg.html +3 -3
- unfold/templates/unfold/layouts/base_simple.html +3 -3
- unfold/templates/unfold/layouts/skeleton.html +2 -2
- unfold/templates/unfold/widgets/clearable_file_input.html +3 -3
- unfold/templates/unfold/widgets/clearable_file_input_small.html +5 -5
- unfold/templates/unfold/widgets/foreign_key_raw_id.html +5 -5
- unfold/templates/unfold/widgets/related_widget_wrapper.html +8 -8
- unfold/templates/unfold/widgets/split_datetime.html +2 -2
- unfold/templates/unfold_crispy/field.html +1 -1
- unfold/templates/unfold_crispy/inputs.html +1 -1
- unfold/templates/unfold_crispy/layout/checkbox.html +1 -1
- unfold/templates/unfold_crispy/layout/fieldset.html +1 -1
- unfold/templates/unfold_crispy/layout/table_inline_formset.html +2 -2
- unfold/templatetags/unfold.py +23 -9
- unfold/widgets.py +29 -34
- {django_unfold-0.55.2.dist-info → django_unfold-1.0.0.dist-info}/LICENSE.md +0 -0
@@ -1,26 +1,26 @@
|
|
1
1
|
{% load i18n %}
|
2
2
|
|
3
3
|
<template id="trix-toolbar">
|
4
|
-
<div class="bg-base-50 flex flex-row flex-wrap border group-[.errors]:border-t-red-600 gap-4 group-[.errors]:border-x-red-600 px-3 py-2 relative rounded rounded-b-none shadow-
|
5
|
-
<div data-trix-button-group="text-tools" class="bg-white border border-md flex flex-row rounded shadow-
|
4
|
+
<div class="bg-base-50 flex flex-row flex-wrap border border-base-200 group-[.errors]:border-t-red-600 gap-4 group-[.errors]:border-x-red-600 px-3 py-2 relative rounded-default rounded-b-none shadow-xs w-full dark:bg-white/[.02] dark:border-base-700 dark:group-[.errors]:border-t-red-500 dark:group-[.errors]:border-x-red-500">
|
5
|
+
<div data-trix-button-group="text-tools" class="bg-white border border-base-200 border-md flex flex-row rounded-default shadow-xs shrink-0 dark:bg-base-900 dark:border-base-700 dark:text-font-default-dark">
|
6
6
|
{% spaceless %}
|
7
|
-
<button type="button" data-trix-attribute="p" data-trix-key="p" title="{% trans "Paragraph" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
7
|
+
<button type="button" data-trix-attribute="p" data-trix-key="p" title="{% trans "Paragraph" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
8
8
|
<span class="material-symbols-outlined">format_paragraph</span>
|
9
9
|
</button>
|
10
10
|
|
11
|
-
<button type="button" data-trix-attribute="underlined" data-trix-key="u" title="{% trans "Underlined" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
11
|
+
<button type="button" data-trix-attribute="underlined" data-trix-key="u" title="{% trans "Underlined" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
12
12
|
<span class="material-symbols-outlined">format_underlined</span>
|
13
13
|
</button>
|
14
14
|
|
15
|
-
<button type="button" data-trix-attribute="bold" data-trix-key="b" title="{% trans "Bold" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
15
|
+
<button type="button" data-trix-attribute="bold" data-trix-key="b" title="{% trans "Bold" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
16
16
|
<span class="material-symbols-outlined">format_bold</span>
|
17
17
|
</button>
|
18
18
|
|
19
|
-
<button type="button" data-trix-attribute="italic" data-trix-key="i" title="{% trans "Italic" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
19
|
+
<button type="button" data-trix-attribute="italic" data-trix-key="i" title="{% trans "Italic" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
20
20
|
<span class="material-symbols-outlined">format_italic</span>
|
21
21
|
</button>
|
22
22
|
|
23
|
-
<button type="button" data-trix-attribute="strike" title="{% trans "Strike" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
23
|
+
<button type="button" data-trix-attribute="strike" title="{% trans "Strike" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
24
24
|
<span class="material-symbols-outlined">format_strikethrough</span>
|
25
25
|
</button>
|
26
26
|
|
@@ -30,17 +30,17 @@
|
|
30
30
|
{% endspaceless %}
|
31
31
|
</div>
|
32
32
|
|
33
|
-
<div data-trix-button-group="block-headings" class="bg-white border border-md flex flex-row rounded shadow-
|
33
|
+
<div data-trix-button-group="block-headings" class="bg-white border border-base-200 border-md flex flex-row rounded-default shadow-xs dark:bg-base-900 dark:border-base-700 dark:text-font-default-dark">
|
34
34
|
{% spaceless %}
|
35
|
-
<button type="button" data-trix-attribute="heading1" title="{% trans "Heading" %} 1" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
35
|
+
<button type="button" data-trix-attribute="heading1" title="{% trans "Heading" %} 1" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
36
36
|
<span class="material-symbols-outlined">format_h1</span>
|
37
37
|
</button>
|
38
38
|
|
39
|
-
<button type="button" data-trix-attribute="heading2" title="{% trans "Heading" %} 2" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
39
|
+
<button type="button" data-trix-attribute="heading2" title="{% trans "Heading" %} 2" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
40
40
|
<span class="material-symbols-outlined">format_h2</span>
|
41
41
|
</button>
|
42
42
|
|
43
|
-
<button type="button" data-trix-attribute="heading3" title="{% trans "Heading" %} 3" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
43
|
+
<button type="button" data-trix-attribute="heading3" title="{% trans "Heading" %} 3" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
44
44
|
<span class="material-symbols-outlined">format_h3</span>
|
45
45
|
</button>
|
46
46
|
|
@@ -50,25 +50,25 @@
|
|
50
50
|
{% endspaceless %}
|
51
51
|
</div>
|
52
52
|
|
53
|
-
<div data-trix-button-group="block-tools" class="bg-white border border-md flex flex-row rounded shadow-
|
53
|
+
<div data-trix-button-group="block-tools" class="bg-white border border-base-200 border-md flex flex-row rounded-default shadow-xs dark:bg-base-900 dark:border-base-700 dark:text-font-default-dark">
|
54
54
|
{% spaceless %}
|
55
|
-
<button type="button" data-trix-attribute="quote" title="{% trans "Quote" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
55
|
+
<button type="button" data-trix-attribute="quote" title="{% trans "Quote" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
56
56
|
<span class="material-symbols-outlined">format_quote</span>
|
57
57
|
</button>
|
58
58
|
|
59
|
-
<button type="button" data-trix-attribute="code" title="{% trans "Code" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
59
|
+
<button type="button" data-trix-attribute="code" title="{% trans "Code" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
60
60
|
<span class="material-symbols-outlined">code</span>
|
61
61
|
</button>
|
62
62
|
|
63
|
-
<button type="button" data-trix-attribute="bullet" title="{% trans "Unordered list" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
63
|
+
<button type="button" data-trix-attribute="bullet" title="{% trans "Unordered list" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
64
64
|
<span class="material-symbols-outlined">format_list_bulleted</span>
|
65
65
|
</button>
|
66
66
|
|
67
|
-
<button type="button" data-trix-attribute="number" title="{% trans "Ordered list" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
67
|
+
<button type="button" data-trix-attribute="number" title="{% trans "Ordered list" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
68
68
|
<span class="material-symbols-outlined">format_list_numbered</span>
|
69
69
|
</button>
|
70
70
|
|
71
|
-
<button type="button" data-trix-action="increaseNestingLevel" title="{% trans "Indent increase" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
71
|
+
<button type="button" data-trix-action="increaseNestingLevel" title="{% trans "Indent increase" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
72
72
|
<span class="material-symbols-outlined">format_indent_increase</span>
|
73
73
|
</button>
|
74
74
|
|
@@ -79,8 +79,8 @@
|
|
79
79
|
</div>
|
80
80
|
|
81
81
|
<div class="lg:ml-auto">
|
82
|
-
<div data-trix-button-group="history-tools" class="bg-white border border-md flex flex-row rounded shadow-
|
83
|
-
<button type="button" data-trix-action="undo" data-trix-key="z" title="{% trans "Undo" %}" tabindex="-1" class="border-r cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
82
|
+
<div data-trix-button-group="history-tools" class="bg-white border border-base-200 border-md flex flex-row rounded-default shadow-xs dark:bg-base-900 dark:border-base-700 dark:text-font-default-dark">
|
83
|
+
<button type="button" data-trix-action="undo" data-trix-key="z" title="{% trans "Undo" %}" tabindex="-1" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
84
84
|
<span class="material-symbols-outlined">undo</span>
|
85
85
|
</button>
|
86
86
|
|
@@ -90,12 +90,12 @@
|
|
90
90
|
</div>
|
91
91
|
|
92
92
|
<div data-trix-dialogs>
|
93
|
-
<div class="absolute bg-white border-b -bottom-px left-0 px-4 py-2 right-0 shadow-
|
93
|
+
<div class="absolute bg-white border-b border-base-200 -bottom-px left-0 px-4 py-2 right-0 shadow-xs translate-y-full dark:bg-base-900 dark:border-base-700" data-trix-dialog="href" data-trix-dialog-attribute="href">
|
94
94
|
<div class="flex flex-row">
|
95
|
-
<input type="url" name="href" class="border bg-white font-medium px-3 rounded shadow-
|
95
|
+
<input type="url" name="href" class="border border-base-200 bg-white font-medium px-3 rounded-default shadow-xs text-base-500 text-sm focus:outline-2 focus:-outline-offset-2 focus:outline-primary-600 group-[.errors]:border-red-600 focus:group-[.errors]:outline-red-600 dark:bg-base-900 dark:border-base-700 dark:text-font-default-dark dark:group-[.errors]:border-red-500 dark:focus:group-[.errors]:outline-red-500" placeholder="{% trans "Enter an URL" %}" required data-trix-input>
|
96
96
|
|
97
|
-
<div class="bg-white border border-md flex flex-row ml-4 rounded shadow-
|
98
|
-
<button type="button" data-trix-method="setAttribute" title="{% trans "Link" %}" class="border-r cursor-pointer flex items-center h-8 justify-center text-base-400 transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
97
|
+
<div class="bg-white border border-base-200 border-md flex flex-row ml-4 rounded-default shadow-xs dark:bg-base-900 dark:border-base-700 dark:text-font-default-dark">
|
98
|
+
<button type="button" data-trix-method="setAttribute" title="{% trans "Link" %}" class="border-r border-base-200 cursor-pointer flex items-center h-8 justify-center text-base-400 transition-colors w-8 hover:text-primary-600 dark:border-base-700">
|
99
99
|
<span class="material-symbols-outlined">link</span>
|
100
100
|
</button>
|
101
101
|
|
unfold/contrib/forms/widgets.py
CHANGED
@@ -13,9 +13,9 @@ from unfold.widgets import (
|
|
13
13
|
|
14
14
|
WYSIWYG_CLASSES = [
|
15
15
|
*PROSE_CLASSES,
|
16
|
-
"border",
|
17
|
-
"border-base-200",
|
18
|
-
"border-t-0",
|
16
|
+
"border!",
|
17
|
+
"border-base-200!",
|
18
|
+
"border-t-0!",
|
19
19
|
"group-[.errors]:border-red-600",
|
20
20
|
"max-w-none",
|
21
21
|
"p-4",
|
@@ -23,10 +23,10 @@ WYSIWYG_CLASSES = [
|
|
23
23
|
"rounded-t-none",
|
24
24
|
"text-base-500",
|
25
25
|
"w-full",
|
26
|
-
"focus:outline-
|
27
|
-
"dark:border-base-700",
|
28
|
-
"dark:text-base-300",
|
29
|
-
"dark:group-[.errors]:border-red-500",
|
26
|
+
"focus:outline-hidden",
|
27
|
+
"dark:border-base-700!",
|
28
|
+
"dark:text-base-300!",
|
29
|
+
"dark:group-[.errors]:border-red-500!",
|
30
30
|
]
|
31
31
|
|
32
32
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
{% load admin_urls i18n guardian_tags %}
|
4
4
|
|
5
5
|
{% block breadcrumbs %}{% if not is_popup %}
|
6
|
-
<div class="px-4
|
6
|
+
<div class="px-4">
|
7
7
|
<div class="container mb-6 mx-auto -my-3 lg:mb-12">
|
8
8
|
<ul class="flex flex-wrap">
|
9
9
|
{% url 'admin:index' as link %}
|
@@ -29,7 +29,9 @@
|
|
29
29
|
{% block content %}
|
30
30
|
{% include "unfold/guardian/user_form.html" %}
|
31
31
|
|
32
|
-
<hr class="my-12 dark:border-base-800"/>
|
32
|
+
<hr class="border-base-200 my-12 dark:border-base-800"/>
|
33
33
|
|
34
34
|
{% include "unfold/guardian/group_form.html" %}
|
35
35
|
{% endblock %}
|
36
|
+
|
37
|
+
{% block footer %}{% endblock%}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
{% endblock %}
|
7
7
|
|
8
8
|
{% block breadcrumbs %}{% if not is_popup %}
|
9
|
-
<div class="px-4
|
9
|
+
<div class="px-4">
|
10
10
|
<div class="container mb-6 mx-auto -my-3 lg:mb-12">
|
11
11
|
<ul class="flex flex-wrap">
|
12
12
|
{% url 'admin:index' as link %}
|
@@ -32,7 +32,7 @@
|
|
32
32
|
{% endif %}{% endblock %}
|
33
33
|
|
34
34
|
{% block content %}
|
35
|
-
<div class="border border-base-200 overflow-hidden rounded p-3 shadow-
|
35
|
+
<div class="border border-base-200 overflow-hidden rounded-default p-3 shadow-xs dark:border-base-800">
|
36
36
|
<form method="post">
|
37
37
|
{% csrf_token %}
|
38
38
|
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
{% include "unfold/helpers/field.html" with field=form.permissions %}
|
46
46
|
|
47
|
-
<div class="bg-base-50 border-t flex flex-row -m-3 p-3 dark:bg-white/[.02] dark:border-base-800">
|
47
|
+
<div class="bg-base-50 border-t border-base-200 flex flex-row -m-3 p-3 dark:bg-white/[.02] dark:border-base-800">
|
48
48
|
<div class="ml-auto">
|
49
49
|
{% trans "Save" as title %}
|
50
50
|
{% include "unfold/helpers/submit.html" with title=title %}
|
@@ -53,3 +53,5 @@
|
|
53
53
|
</form>
|
54
54
|
</div>
|
55
55
|
{% endblock %}
|
56
|
+
|
57
|
+
{% block footer %}{% endblock%}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
{% endblock %}
|
8
8
|
|
9
9
|
{% block breadcrumbs %}{% if not is_popup %}
|
10
|
-
<div class="px-4
|
10
|
+
<div class="px-4">
|
11
11
|
<div class="container mb-6 mx-auto -my-3 lg:mb-12">
|
12
12
|
<ul class="flex flex-wrap">
|
13
13
|
{% url 'admin:index' as link %}
|
@@ -33,7 +33,7 @@
|
|
33
33
|
{% endif %}{% endblock %}
|
34
34
|
|
35
35
|
{% block content %}
|
36
|
-
<div class="border border-base-200 overflow-hidden rounded p-3 shadow-
|
36
|
+
<div class="border border-base-200 overflow-hidden rounded-default p-3 shadow-xs dark:border-base-800">
|
37
37
|
<form method="post">
|
38
38
|
{% csrf_token %}
|
39
39
|
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
{% include "unfold/helpers/field.html" with field=form.permissions %}
|
47
47
|
|
48
|
-
<div class="bg-base-50 border-t flex flex-row -m-3 p-3 dark:bg-white/[.02] dark:border-base-800">
|
48
|
+
<div class="bg-base-50 border-t border-base-200 flex flex-row -m-3 p-3 dark:bg-white/[.02] dark:border-base-800">
|
49
49
|
<div class="ml-auto">
|
50
50
|
{% trans "Save" as title %}
|
51
51
|
{% include "unfold/helpers/submit.html" with title=title %}
|
@@ -54,3 +54,5 @@
|
|
54
54
|
</form>
|
55
55
|
</div>
|
56
56
|
{% endblock %}
|
57
|
+
|
58
|
+
{% block footer %}{% endblock%}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
</h2>
|
9
9
|
|
10
10
|
{% if groups_perms.items %}
|
11
|
-
<table id="group-permissions" class="border-base-200 border-spacing-none border-separate mb-6 w-full lg:border lg:rounded lg:shadow-
|
11
|
+
<table id="group-permissions" 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">
|
12
12
|
<thead class="hidden lg:table-header-group text-font-important-light dark:text-font-important-dark">
|
13
13
|
<tr>
|
14
14
|
<th class="align-middle font-semibold px-3 py-2 text-left">
|
@@ -29,7 +29,7 @@
|
|
29
29
|
|
30
30
|
<tbody>
|
31
31
|
{% for group, group_perms in groups_perms.items %}
|
32
|
-
<tr class="block border mb-3 rounded shadow-
|
32
|
+
<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">
|
33
33
|
<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-0 lg:before:hidden lg:first:border-t lg:py-3 lg:table-cell dark:border-base-800" data-label="{% trans "User" %}">
|
34
34
|
<span>
|
35
35
|
{{ group }}
|
@@ -57,12 +57,12 @@
|
|
57
57
|
</table>
|
58
58
|
{% endif %}
|
59
59
|
|
60
|
-
<div class="border border-base-200 overflow-hidden rounded p-3 shadow-
|
60
|
+
<div class="border border-base-200 overflow-hidden rounded-default p-3 shadow-xs dark:border-base-800">
|
61
61
|
{% for field in group_form %}
|
62
62
|
{% include "admin/guardian/model/field.html" %}
|
63
63
|
{% endfor %}
|
64
64
|
|
65
|
-
<div class="bg-base-50 border-t flex flex-row -m-3 p-3 dark:bg-white/[.02] dark:border-base-800">
|
65
|
+
<div class="bg-base-50 border-t border-base-200 flex flex-row -m-3 p-3 dark:bg-white/[.02] dark:border-base-800">
|
66
66
|
<div class="ml-auto">
|
67
67
|
{% trans "Manage group" as title %}
|
68
68
|
{% include "unfold/helpers/submit.html" with title=title name="submit_manage_group" %}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
</h2>
|
9
9
|
|
10
10
|
{% if users_perms.items %}
|
11
|
-
<table id="user-permissions" class="border-base-200 border-spacing-none border-separate mb-6 w-full lg:border lg:rounded lg:shadow-
|
11
|
+
<table id="user-permissions" 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">
|
12
12
|
<thead class="hidden lg:table-header-group text-font-important-light dark:text-font-important-dark">
|
13
13
|
<tr>
|
14
14
|
<th class="align-middle font-semibold px-3 py-2 text-left">
|
@@ -29,7 +29,7 @@
|
|
29
29
|
|
30
30
|
<tbody>
|
31
31
|
{% for user, user_perms in users_perms.items %}
|
32
|
-
<tr class="block border mb-3 rounded shadow-
|
32
|
+
<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">
|
33
33
|
<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-0 lg:before:hidden lg:first:border-t lg:py-3 lg:table-cell dark:border-base-800" data-label="{% trans "User" %}">
|
34
34
|
<span>
|
35
35
|
{{ user }}
|
@@ -57,12 +57,12 @@
|
|
57
57
|
</table>
|
58
58
|
{% endif %}
|
59
59
|
|
60
|
-
<div class="border border-base-200 overflow-hidden rounded p-3 shadow-
|
60
|
+
<div class="border border-base-200 overflow-hidden rounded-default p-3 shadow-xs dark:border-base-800">
|
61
61
|
{% for field in user_form %}
|
62
62
|
{% include "admin/guardian/model/field.html" %}
|
63
63
|
{% endfor %}
|
64
64
|
|
65
|
-
<div class="bg-base-50 border-t flex flex-row -m-3 p-3 dark:bg-white/[.02] dark:border-base-800">
|
65
|
+
<div class="bg-base-50 border-t border-base-200 flex flex-row -m-3 p-3 dark:bg-white/[.02] dark:border-base-800">
|
66
66
|
<div class="ml-auto">
|
67
67
|
{% trans "Manage user" as title %}
|
68
68
|
{% include "unfold/helpers/submit.html" with title=title name="submit_manage_user" %}
|
@@ -5,6 +5,6 @@
|
|
5
5
|
{{ block.super }}
|
6
6
|
|
7
7
|
{% if show_change_form_export %}
|
8
|
-
<input type="submit" value="{% translate 'Export' %}" name="_export-item" class="bg-white text-base-500 border cursor-pointer flex font-medium items-center px-3 py-2 mr-3 rounded shadow-
|
8
|
+
<input type="submit" value="{% translate 'Export' %}" name="_export-item" class="bg-white text-base-500 border cursor-pointer flex font-medium items-center px-3 py-2 mr-3 rounded-default shadow-xs text-sm dark:bg-base-900 dark:border dark:border-base-700 dark:text-font-default-dark">
|
9
9
|
{% endif %}
|
10
10
|
{% endblock %}
|
@@ -10,7 +10,7 @@
|
|
10
10
|
{% endblock %}
|
11
11
|
|
12
12
|
{% block breadcrumbs %}
|
13
|
-
<div class="px-4
|
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 %}
|
@@ -37,7 +37,7 @@
|
|
37
37
|
{% csrf_token %}
|
38
38
|
|
39
39
|
{% if form.initial.export_items %}
|
40
|
-
<p class="bg-blue-50 mb-4 text-blue-500 px-3 py-3 rounded text-sm dark:bg-blue-500/20 dark:border-blue-500/10">
|
40
|
+
<p class="bg-blue-50 mb-4 text-blue-500 px-3 py-3 rounded-default text-sm dark:bg-blue-500/20 dark:border-blue-500/10">
|
41
41
|
{% blocktranslate count len=form.initial.export_items|length %}
|
42
42
|
Export {{ len }} selected item.
|
43
43
|
{% plural %}
|
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
{{ form.non_field_errors }}
|
54
54
|
|
55
|
-
<fieldset class="border border-base-200 mb-4 rounded pt-3 px-3 shadow-
|
55
|
+
<fieldset class="border border-base-200 mb-4 rounded-default pt-3 px-3 shadow-xs dark:border-base-800">
|
56
56
|
{% for field in form.visible_fields %}
|
57
57
|
<div {% if field.field.is_selectable_field %}class="selectable-field-export-row" resource-index="{{ field.field.resource_index }}"{% endif %}>
|
58
58
|
{% if field.field.initial_field %}
|
@@ -75,7 +75,7 @@
|
|
75
75
|
{% endfor %}
|
76
76
|
</fieldset>
|
77
77
|
|
78
|
-
<button type="submit" class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded text-sm text-white">
|
78
|
+
<button type="submit" class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded-default text-sm text-white">
|
79
79
|
{% translate 'Submit' %}
|
80
80
|
</button>
|
81
81
|
</form>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{% load admin_urls i18n import_export_tags %}
|
2
2
|
|
3
3
|
{% block confirm_import_form %}
|
4
|
-
<form action="{% url opts|admin_urlname:"process_import" %}" method="post" class="border border-base-200 mb-8 rounded shadow-
|
4
|
+
<form action="{% url opts|admin_urlname:"process_import" %}" method="post" class="border border-base-200 mb-8 rounded-default shadow-xs dark:border-base-800">
|
5
5
|
{% csrf_token %}
|
6
6
|
|
7
7
|
{{ confirm_form.as_p }}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
</p>
|
12
12
|
|
13
13
|
<div class="border-t border-base-200 flex flex-row px-4 py-3 dark:border-base-800">
|
14
|
-
<button type="submit" class="bg-primary-600 border border-transparent font-medium ml-auto px-3 py-2 rounded text-sm text-white">
|
14
|
+
<button type="submit" class="bg-primary-600 border border-transparent font-medium ml-auto px-3 py-2 rounded-default text-sm text-white">
|
15
15
|
{% translate 'Confirm import' %}
|
16
16
|
</button>
|
17
17
|
</div>
|
@@ -14,21 +14,27 @@
|
|
14
14
|
{% for line, errors in result.row_errors %}
|
15
15
|
{% for error in errors %}
|
16
16
|
<li x-data="{ open: false }">
|
17
|
-
<div class="bg-red-50 border border-red-200 cursor-pointer mb-4 rounded shadow-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
<div class="bg-red-50 border border-red-200 cursor-pointer mb-4 rounded-default shadow-xs text-red-500 dark:bg-red-500/20 dark:border-red-500/20" x-on:click="open = ! open">
|
18
|
+
{% if "message" in import_error_display %}
|
19
|
+
<div class="border-b border-red-200 flex flex-row font-semibold py-3 px-4 dark:border-red-500/20">
|
20
|
+
{% trans "Line number" %}: {{ line }} - {{ error.error }}
|
21
|
+
</div>
|
22
|
+
{% endif %}
|
21
23
|
|
22
|
-
|
23
|
-
<
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
{% if "row" in import_error_display %}
|
25
|
+
<div class="px-4 py-3">
|
26
|
+
<code>
|
27
|
+
{{ error.row.values|join:", " }}
|
28
|
+
</code>
|
29
|
+
</div>
|
30
|
+
{% endif %}
|
27
31
|
</div>
|
28
32
|
|
29
|
-
|
30
|
-
|
31
|
-
|
33
|
+
{% if "traceback" in import_error_display %}
|
34
|
+
<div class="block border border-base-200 leading-relaxed mb-4 rounded-default p-4 traceback dark:border-base-800 dark:text-font-default-dark " x-show="open">
|
35
|
+
{{ error.traceback|linebreaks }}
|
36
|
+
</div>
|
37
|
+
{% endif %}
|
32
38
|
</li>
|
33
39
|
{% endfor %}
|
34
40
|
{% endfor %}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
{% include "admin/import_export/resource_fields_list.html" with import_or_export="import" %}
|
8
8
|
|
9
|
-
<fieldset class="border border-base-200 mb-8 rounded pt-3 px-3 shadow-
|
9
|
+
<fieldset class="border border-base-200 mb-8 rounded-default pt-3 px-3 shadow-xs dark:border-base-800">
|
10
10
|
{% for field in form %}
|
11
11
|
{% if field.field.widget.attrs.readonly %}
|
12
12
|
{% include "unfold/helpers/field_readonly.html" with title=field.label value=field.field.value %}
|
@@ -17,7 +17,7 @@
|
|
17
17
|
{% endfor %}
|
18
18
|
</fieldset>
|
19
19
|
|
20
|
-
<button type="submit" class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded text-sm text-white">
|
20
|
+
<button type="submit" class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded-default text-sm text-white">
|
21
21
|
{% translate 'Submit' %}
|
22
22
|
</button>
|
23
23
|
</form>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{% load admin_urls i18n import_export_tags unfold %}
|
2
2
|
|
3
3
|
{% block preview %}
|
4
|
-
<table class="border-base-200 border-spacing-none border-separate w-full lg:border lg:rounded lg:shadow-
|
4
|
+
<table class="border-base-200 border-spacing-none border-separate w-full lg:border lg:rounded-default lg:shadow-xs lg:dark:border-base-800">
|
5
5
|
<thead class="hidden lg:table-header-group text-base-900 dark:text-base-100">
|
6
6
|
<tr>
|
7
7
|
<th class="align-middle capitalize font-semibold px-3 py-2 text-left"></th>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
<tbody>
|
18
18
|
{% for row in result.valid_rows %}
|
19
|
-
<tr class="{{ row.import_type }} {% cycle '' 'bg-base-50 dark:bg-white/[.02]' %} block border mb-3 rounded shadow-
|
19
|
+
<tr class="{{ row.import_type }} {% cycle '' 'bg-base-50 dark:bg-white/[.02]' %} block border mb-3 rounded-default shadow-xs lg:table-row lg:border-none lg:mb-0 lg:shadow-none dark:border-base-800">
|
20
20
|
<td class="align-middle flex border-t border-base-200 font-normal px-3 py-2 text-left before:block before:capitalize before:content-[attr(data-label)] before:mr-auto lg:before:hidden lg:py-3 lg:table-cell dark:border-base-800">
|
21
21
|
{% if row.import_type == 'new' %}
|
22
22
|
{% trans "New" %}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
{% include "unfold/helpers/messages/error.html" with error=import_error %}
|
16
16
|
</div>
|
17
17
|
|
18
|
-
<table class="import-preview border-base-200 border-spacing-none border-separate w-full lg:border lg:rounded lg:shadow-
|
18
|
+
<table class="import-preview border-base-200 border-spacing-none border-separate w-full lg:border lg:rounded-default lg:shadow-xs lg:dark:border-base-800">
|
19
19
|
<thead class="hidden lg:table-header-group font-semibold text-base-900 dark:text-base-100">
|
20
20
|
<tr>
|
21
21
|
<th class="align-middle capitalize px-3 py-2 text-left">
|
@@ -36,25 +36,25 @@
|
|
36
36
|
|
37
37
|
<tbody>
|
38
38
|
{% for row in result.invalid_rows %}
|
39
|
-
<tr class="{% cycle '' 'bg-base-50 dark:bg-white/[.02]' %} block border border-base-200 mb-3 rounded shadow-
|
39
|
+
<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">
|
40
40
|
<td data-label="{% trans "Row" %}" class="align-middle flex border-t border-base-200 font-normal px-3 py-2 text-left before:block before:capitalize before:content-[attr(data-label)] before:mr-auto lg:before:hidden lg:py-3 lg:table-cell dark:border-base-800">
|
41
41
|
{{ row.number }}
|
42
42
|
</td>
|
43
43
|
|
44
44
|
<td data-label="{% trans "Errors" %}" class="errors align-middle flex border-t border-base-200 font-normal px-3 py-2 text-left before:block before:capitalize before:content-[attr(data-label)] before:mr-auto lg:before:hidden lg:py-3 lg:table-cell dark:border-base-800">
|
45
|
-
<span class="validation-error-count bg-red-600 font-semibold ml-2 px-1 rounded text-xs text-white">{{ row.error_count }}</span>
|
45
|
+
<span class="validation-error-count bg-red-600 font-semibold ml-2 px-1 rounded-default text-xs text-white">{{ row.error_count }}</span>
|
46
46
|
|
47
|
-
<div class="validation-error-container rounded
|
47
|
+
<div class="validation-error-container rounded-default bg-white! border border-base-200 left-12 m-0! p-0! top-3! dark:bg-base-800! dark:border-base-700! min-w-72">
|
48
48
|
<ul class="validation-error-list">
|
49
49
|
{% for field_name, error_list in row.field_specific_errors.items %}
|
50
50
|
<li class="p-3">
|
51
|
-
<span class="validation-error-field-label
|
51
|
+
<span class="validation-error-field-label border-0! font-semibold mb-1 text-font-important-light! dark:text-font-important-dark!">
|
52
52
|
{{ field_name }}
|
53
53
|
</span>
|
54
54
|
|
55
|
-
<ul class="text-xs
|
55
|
+
<ul class="text-xs m-0!">
|
56
56
|
{% for error in error_list %}
|
57
|
-
<li class="
|
57
|
+
<li class="m-0!">
|
58
58
|
<p class="leading-normal">
|
59
59
|
{{ error }}
|
60
60
|
</p>
|
@@ -4,14 +4,14 @@
|
|
4
4
|
|
5
5
|
{% block content %}
|
6
6
|
{% if not revert_disabled %}
|
7
|
-
<p class="px-3 py-3 rounded text-sm last:mb-8 mb-8 bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-400">
|
7
|
+
<p class="px-3 py-3 rounded-default text-sm last:mb-8 mb-8 bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-400">
|
8
8
|
{% blocktrans %}Choose a date from the list below to revert to a previous version of this object.{% endblocktrans %}
|
9
9
|
</p>
|
10
10
|
{% endif %}
|
11
11
|
|
12
12
|
{% if page_obj.object_list %}
|
13
13
|
{% include object_history_list_template %}
|
14
|
-
<div class="bg-base-50 flex my-4 items-center p-3 rounded dark:bg-base-800">
|
14
|
+
<div class="bg-base-50 flex my-4 items-center p-3 rounded-default dark:bg-base-800">
|
15
15
|
{% if pagination_required %}
|
16
16
|
{% for i in page_range %}
|
17
17
|
<span class="pr-4">
|
@@ -28,7 +28,7 @@
|
|
28
28
|
{{ page_obj.paginator.count }} {% blocktranslate count counter=page_obj.paginator.count %}entry{% plural %}entries{% endblocktranslate %}
|
29
29
|
</div>
|
30
30
|
{% else %}
|
31
|
-
<div class="mb-3 px-3 py-3 rounded text-sm last:mb-8 bg-amber-100 text-amber-600 dark:bg-amber-600/20 dark:border-amber-600/10">
|
31
|
+
<div class="mb-3 px-3 py-3 rounded-default text-sm last:mb-8 bg-amber-100 text-amber-600 dark:bg-amber-600/20 dark:border-amber-600/10">
|
32
32
|
{% trans "This object doesn't have a change history." %}
|
33
33
|
</div>
|
34
34
|
{% endif %}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
{% load url from simple_history_compat %}
|
5
5
|
|
6
6
|
{% block breadcrumbs %}
|
7
|
-
<div class="px-4
|
7
|
+
<div class="px-4">
|
8
8
|
<div class="container mb-6 mx-auto -my-3 lg:mb-12">
|
9
9
|
<ul class="flex flex-wrap">
|
10
10
|
{% url 'admin:index' as link %}
|
@@ -43,7 +43,7 @@
|
|
43
43
|
{% endblock %}
|
44
44
|
|
45
45
|
{% block form_top %}
|
46
|
-
<p class="px-3 py-3 rounded text-sm last:mb-8 er-amber-600/10 bg-blue-50 mb-8 text-blue-500 dark:bg-blue-500/20 dark:border-blue-500/10">
|
46
|
+
<p class="px-3 py-3 rounded-default text-sm last:mb-8 er-amber-600/10 bg-blue-50 mb-8 text-blue-500 dark:bg-blue-500/20 dark:border-blue-500/10">
|
47
47
|
{% if not revert_disabled %}
|
48
48
|
{% blocktrans %}Press the 'Revert' button below to revert to this version of the object.{% endblocktrans %}
|
49
49
|
{% endif %}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
{% load admin_urls %}
|
4
4
|
{% load getattribute from getattributes %}
|
5
5
|
|
6
|
-
<table id="change-history" class="border-base-200 border-spacing-none border-separate mb-6 w-full lg:border lg:rounded lg:shadow-
|
6
|
+
<table id="change-history" 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">
|
7
7
|
<thead class="hidden text-font-important-light lg:table-header-group dark:text-font-important-dark">
|
8
8
|
<tr>
|
9
9
|
<th class="align-middle font-semibold px-3 py-2 text-left ">
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
<tbody>
|
42
42
|
{% for record in page_obj %}
|
43
|
-
<tr class="block border mb-3 rounded shadow-
|
43
|
+
<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">
|
44
44
|
<td 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-0 lg:before:hidden lg:first:border-t lg:py-3 lg:table-cell dark:border-base-800" data-label="{% trans 'Object' %}">
|
45
45
|
<a href="{% url opts|admin_urlname:'simple_history' object.pk record.pk %}">
|
46
46
|
{{ record.history_object }}
|
@@ -2,21 +2,21 @@
|
|
2
2
|
|
3
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
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-base-900 {% if not is_popup %}border-t border-base-200 px-4 py-4 relative scrollable-top
|
5
|
+
<div class="bg-white dark:bg-base-900 {% if not is_popup %}border-t border-base-200 px-4 py-4 relative scrollable-top dark:border-base-800{% endif %}">
|
6
6
|
<div class="container flex flex-col-reverse gap-3 items-center mx-auto lg:flex-row-reverse">
|
7
7
|
{% if not revert_disabled %}
|
8
|
-
<button type="submit" class="bg-primary-600 block border border-transparent font-medium px-3 py-2 rounded text-sm text-white w-full lg:w-auto" name="_save" {{ onclick_attrib }}>
|
8
|
+
<button type="submit" class="bg-primary-600 block border border-transparent font-medium px-3 py-2 rounded-default text-sm text-white w-full lg:w-auto" name="_save" {{ onclick_attrib }}>
|
9
9
|
{% trans 'Revert' %}
|
10
10
|
</button>
|
11
11
|
{% endif %}
|
12
12
|
|
13
13
|
{% if change_history %}
|
14
|
-
<button type="submit" class="bg-primary-600 block border border-transparent font-medium px-3 py-2 rounded text-sm text-white w-full lg:w-auto" name="_change_history" {{ onclick_attrib }}>
|
14
|
+
<button type="submit" class="bg-primary-600 block border border-transparent font-medium px-3 py-2 rounded-default text-sm text-white w-full lg:w-auto" name="_change_history" {{ onclick_attrib }}>
|
15
15
|
{% trans 'Change History' %}
|
16
16
|
</button>
|
17
17
|
{% endif %}
|
18
18
|
|
19
|
-
<a href="{{ history_url }}" class="border border-base-200 font-medium mr-auto px-3 py-2 rounded text-sm text-base-500 text-center 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">
|
19
|
+
<a href="{{ history_url }}" class="border border-base-200 font-medium mr-auto px-3 py-2 rounded-default text-sm text-base-500 text-center 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">
|
20
20
|
{% trans 'Close' %}
|
21
21
|
</a>
|
22
22
|
</div>
|