django-unfold 0.39.0__py3-none-any.whl → 0.40.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,82 +13,75 @@
13
13
  {{ inline_admin_formset.formset.management_form }}
14
14
  {% include "unfold/helpers/messages/error.html" with errors=inline_admin_formset.formset.non_form_errors %}
15
15
 
16
- {% if inline_admin_formset.forms|length == 0 %}
17
- <div>
18
- <p class="mb-6 text-sm">
19
- {% trans "No records found." %}
20
- </p>
21
- </div>
22
- {% else %}
23
- <div class="border border-gray-200 mb-6 overflow-hidden rounded-md shadow-sm w-full dark:border-gray-800">
24
- {% for inline_admin_form in inline_admin_formset %}
25
- <div class="inline-related group inline-stacked {% if inline_admin_form.original or inline_admin_form.show_url %} has_original{% endif %}{% if forloop.last and inline_admin_formset.has_add_permission %} empty-form last-related{% endif %}" id="{{ inline_admin_formset.formset.prefix }}-{% if not forloop.last %}{{ forloop.counter0 }}{% else %}empty{% endif %}">
26
- {% if not inline_admin_formset.opts.hide_title or inline_admin_formset.formset.can_delete and inline_admin_formset.has_delete_permission %}
27
- <h3 class="bg-gray-50 border-b {% if not forloop.first %}border-t{% endif %} border-gray-200 flex font-medium items-center mb-3 px-3 py-2 text-sm dark:bg-white/[.02] dark:border-gray-800">
28
- <span class="mr-2">
29
- {{ inline_admin_formset.opts.verbose_name|capfirst }}:
30
- </span>
31
16
 
32
- <span class="inline_label font-semibold text-font-important-light dark:text-font-important-dark">
33
- {% if inline_admin_form.original and inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %}
34
- <a href="{% url inline_admin_form.model_admin.opts|admin_urlname:'change' inline_admin_form.original.pk|admin_urlquote %}" class="{% if inline_admin_formset.has_change_permission %}inlinechangelink{% else %}inlineviewlink{% endif %} font-medium text-primary-600 dark:text-primary-500">
35
- {{ inline_admin_form.original }}
36
- </a>
37
- {% else %}
38
- {% if inline_admin_form.original %}
39
- {% with inline_title=inline_admin_form.original.get_inline_title %}
40
- {% if inline_title %}
41
- {{ inline_title }}
42
- {% else %}
43
- {{ inline_admin_form.original }}
44
- {% endif %}
45
- {% endwith %}
17
+ <div class="border border-gray-200 mb-6 overflow-hidden rounded-md shadow-sm w-full dark:border-gray-800">
18
+ {% for inline_admin_form in inline_admin_formset %}
19
+ <div class="inline-related group inline-stacked {% if inline_admin_form.original or inline_admin_form.show_url %} has_original{% endif %}{% if forloop.last and inline_admin_formset.has_add_permission %} empty-form last-related{% endif %}" id="{{ inline_admin_formset.formset.prefix }}-{% if not forloop.last %}{{ forloop.counter0 }}{% else %}empty{% endif %}">
20
+ {% if not inline_admin_formset.opts.hide_title or inline_admin_formset.formset.can_delete and inline_admin_formset.has_delete_permission %}
21
+ <h3 class="bg-gray-50 border-b {% if not forloop.first %}border-t{% endif %} border-gray-200 flex font-medium items-center mb-3 px-3 py-2 text-sm dark:bg-white/[.02] dark:border-gray-800">
22
+ <span class="mr-2">
23
+ {{ inline_admin_formset.opts.verbose_name|capfirst }}:
24
+ </span>
46
25
 
47
- {% if inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %}
48
- <a href="{% url inline_admin_form.model_admin.opts|admin_urlname:'change' inline_admin_form.original.pk|admin_urlquote %}" class="{{ inline_admin_formset.has_change_permission|yesno:'inlinechangelink,inlineviewlink' }} font-medium ml-2 text-primary-600 dark:text-primary-500">
49
- {% if inline_admin_formset.has_change_permission %}
50
- {% translate "Change" %}
51
- {% else %}
52
- {% translate "View" %}
53
- {% endif %}
54
- </a>
26
+ <span class="inline_label font-semibold text-font-important-light dark:text-font-important-dark">
27
+ {% if inline_admin_form.original and inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %}
28
+ <a href="{% url inline_admin_form.model_admin.opts|admin_urlname:'change' inline_admin_form.original.pk|admin_urlquote %}" class="{% if inline_admin_formset.has_change_permission %}inlinechangelink{% else %}inlineviewlink{% endif %} font-medium text-primary-600 dark:text-primary-500">
29
+ {{ inline_admin_form.original }}
30
+ </a>
31
+ {% else %}
32
+ {% if inline_admin_form.original %}
33
+ {% with inline_title=inline_admin_form.original.get_inline_title %}
34
+ {% if inline_title %}
35
+ {{ inline_title }}
36
+ {% else %}
37
+ {{ inline_admin_form.original }}
55
38
  {% endif %}
56
- {% else %}
57
- #{{ forloop.counter }}
39
+ {% endwith %}
40
+
41
+ {% if inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %}
42
+ <a href="{% url inline_admin_form.model_admin.opts|admin_urlname:'change' inline_admin_form.original.pk|admin_urlquote %}" class="{{ inline_admin_formset.has_change_permission|yesno:'inlinechangelink,inlineviewlink' }} font-medium ml-2 text-primary-600 dark:text-primary-500">
43
+ {% if inline_admin_formset.has_change_permission %}
44
+ {% translate "Change" %}
45
+ {% else %}
46
+ {% translate "View" %}
47
+ {% endif %}
48
+ </a>
58
49
  {% endif %}
50
+ {% else %}
51
+ #{{ forloop.counter }}
59
52
  {% endif %}
60
- </span>
61
-
62
- {% if inline_admin_form.show_url %}
63
- <a href="{{ inline_admin_form.absolute_url }}" class="font-medium ml-2 text-primary-600 dark:text-primary-500">
64
- {% trans "View on site" %}
65
- </a>
66
53
  {% endif %}
54
+ </span>
67
55
 
68
- {% if inline_admin_formset.formset.can_delete and inline_admin_formset.has_delete_permission and inline_admin_form.original %}
69
- <span class="delete flex gap-2 items-center ml-auto">
70
- {{ inline_admin_form.deletion_field.field|add_css_class:form_classes.checkbox }} {{ inline_admin_form.deletion_field.label_tag }}
71
- </span>
72
- {% endif %}
73
- </h3>
74
- {% endif %}
56
+ {% if inline_admin_form.show_url %}
57
+ <a href="{{ inline_admin_form.absolute_url }}" class="font-medium ml-2 text-primary-600 dark:text-primary-500">
58
+ {% trans "View on site" %}
59
+ </a>
60
+ {% endif %}
61
+
62
+ {% if inline_admin_formset.formset.can_delete and inline_admin_formset.has_delete_permission and inline_admin_form.original %}
63
+ <span class="delete flex gap-2 items-center ml-auto">
64
+ {{ inline_admin_form.deletion_field.field|add_css_class:form_classes.checkbox }} {{ inline_admin_form.deletion_field.label_tag }}
65
+ </span>
66
+ {% endif %}
67
+ </h3>
68
+ {% endif %}
75
69
 
76
- {% include "unfold/helpers/messages/error.html" with errors=inline_admin_form.form.non_field_errors %}
70
+ {% include "unfold/helpers/messages/error.html" with errors=inline_admin_form.form.non_field_errors %}
77
71
 
78
- {% for fieldset in inline_admin_form %}
79
- <div class="px-3 -mb-5 {% if inline_admin_formset.opts.hide_title %}{% if not inline_admin_formset.formset.can_delete or not inline_admin_formset.has_delete_permission %}pt-3{% endif %}{% endif %}">
80
- {% include 'admin/includes/fieldset.html' with stacked=1 %}
81
- </div>
82
- {% endfor %}
72
+ {% for fieldset in inline_admin_form %}
73
+ <div class="px-3 -mb-5 {% if inline_admin_formset.opts.hide_title %}{% if not inline_admin_formset.formset.can_delete or not inline_admin_formset.has_delete_permission %}pt-3{% endif %}{% endif %}">
74
+ {% include 'admin/includes/fieldset.html' with stacked=1 %}
75
+ </div>
76
+ {% endfor %}
83
77
 
84
- {% if inline_admin_form.needs_explicit_pk_field %}
85
- {{ inline_admin_form.pk_field.field }}
86
- {% endif %}
78
+ {% if inline_admin_form.needs_explicit_pk_field %}
79
+ {{ inline_admin_form.pk_field.field }}
80
+ {% endif %}
87
81
 
88
- {% if inline_admin_form.fk_field %}{{ inline_admin_form.fk_field.field }}{% endif %}
89
- </div>
90
- {% endfor %}
91
- </div>
92
- {% endif %}
82
+ {% if inline_admin_form.fk_field %}{{ inline_admin_form.fk_field.field }}{% endif %}
83
+ </div>
84
+ {% endfor %}
85
+ </div>
93
86
  </fieldset>
94
87
  </div>
@@ -15,154 +15,146 @@
15
15
 
16
16
  {{ inline_admin_formset.formset.non_form_errors }}
17
17
 
18
- <div>
19
- {% if not inline_admin_formset.has_add_permission and inline_admin_formset.forms|length == 0 %}
20
- <p class="mb-6">
21
- {% trans "No records found." %}
22
- </p>
23
- {% else %}
24
- <div class="border border-gray-200 mb-6 overflow-x-auto rounded-md shadow-sm dark:border-gray-800" data-simplebar data-simplebar-auto-hide="false">
25
- <table class="border-spacing-none border-separate w-full">
26
- <thead class="hidden lg:table-header-group">
27
- <tr>
28
- {% for field in inline_admin_formset.fields %}
29
- {% if not field.widget.is_hidden %}
30
- <th class="column-{{ field.name }}{% if field.required %} required{% endif %} align-middle border-b border-gray-200 font-semibold px-3 py-2 text-left text-font-important-light text-sm whitespace-nowrap dark:text-font-important-dark dark:border-gray-800">
31
- <span class="flex flex-row items-center">
32
- {{ field.label|capfirst }}
33
-
34
- {% if field.help_text %}
35
- <span class="cursor-pointer material-symbols-outlined ml-2 text-gray-400 dark:text-gray-500" title="{{ field.help_text|striptags }}">help</span>
36
- {% endif %}
37
- </span>
38
- </th>
39
- {% endif %}
40
- {% endfor %}
41
-
42
- {% if inline_admin_formset.formset.can_delete and inline_admin_formset.has_delete_permission %}
43
- <th class="align-middle border-b border-gray-200 font-semibold px-3 py-2 text-left text-font-important-light text-sm whitespace-nowrap lg:w-px dark:border-gray-800 dark:text-font-important-dark">
44
- {% translate "Delete?" %}
45
- </th>
46
- {% endif %}
18
+ <div class="border border-gray-200 mb-6 overflow-x-auto rounded-md shadow-sm dark:border-gray-800" data-simplebar data-simplebar-auto-hide="false">
19
+ <table class="border-spacing-none border-separate w-full">
20
+ <thead class="hidden lg:table-header-group">
21
+ <tr>
22
+ {% for field in inline_admin_formset.fields %}
23
+ {% if not field.widget.is_hidden %}
24
+ <th class="column-{{ field.name }}{% if field.required %} required{% endif %} align-middle border-b border-gray-200 font-semibold px-3 py-2 text-left text-font-important-light text-sm whitespace-nowrap dark:text-font-important-dark dark:border-gray-800">
25
+ <span class="flex flex-row items-center">
26
+ {{ field.label|capfirst }}
27
+
28
+ {% if field.help_text %}
29
+ <span class="cursor-pointer material-symbols-outlined ml-2 text-gray-400 dark:text-gray-500" title="{{ field.help_text|striptags }}">help</span>
30
+ {% endif %}
31
+ </span>
32
+ </th>
33
+ {% endif %}
34
+ {% endfor %}
35
+
36
+ {% if inline_admin_formset.formset.can_delete and inline_admin_formset.has_delete_permission %}
37
+ <th class="align-middle border-b border-gray-200 font-semibold px-3 py-2 text-left text-font-important-light text-sm whitespace-nowrap lg:w-px dark:border-gray-800 dark:text-font-important-dark">
38
+ {% translate "Delete?" %}
39
+ </th>
40
+ {% endif %}
41
+ </tr>
42
+ </thead>
43
+
44
+ <tbody>
45
+ {% for inline_admin_form in inline_admin_formset %}
46
+ {% if inline_admin_form.form.non_field_errors %}
47
+ <tr class="row-form-errors group inline-tabular">
48
+ <td colspan="{{ inline_admin_form|cell_count }}">
49
+ {% include "unfold/helpers/messages/error.html" with errors=inline_admin_form.form.non_field_errors %}
50
+ </td>
47
51
  </tr>
48
- </thead>
49
-
50
- <tbody>
51
- {% for inline_admin_form in inline_admin_formset %}
52
- {% if inline_admin_form.form.non_field_errors %}
53
- <tr class="row-form-errors group inline-tabular">
54
- <td colspan="{{ inline_admin_form|cell_count }}">
55
- {% include "unfold/helpers/messages/error.html" with errors=inline_admin_form.form.non_field_errors %}
56
- </td>
57
- </tr>
58
- {% endif %}
52
+ {% endif %}
59
53
 
60
- {% if inline_admin_form.original or inline_admin_form.show_url %}
61
- <tr>
62
- <td class="original" colspan="{{ inline_admin_form|cell_count }}">
63
- {% if not inline_admin_formset.opts.hide_title %}
64
- {% if inline_admin_form.original or inline_admin_form.show_url %}
65
- <p class="flex font-medium items-center px-3 pt-2 text-xs">
66
- {% if inline_admin_form.original %}
67
- <span>
68
- {% with inline_title=inline_admin_form.original.get_inline_title %}
69
- {% if inline_title %}
70
- {{ inline_title }}
71
- {% else %}
72
- {{ inline_admin_form.original }}
73
- {% endif %}
74
- {% endwith %}
75
- </span>
76
-
77
- {% if inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %}
78
- <a href="{% url inline_admin_form.model_admin.opts|admin_urlname:'change' inline_admin_form.original.pk|admin_urlquote %}" class="{{ inline_admin_formset.has_change_permission|yesno:'inlinechangelink,inlineviewlink' }} ml-2 text-primary-600 dark:text-primary-500">
79
- {% if inline_admin_formset.has_change_permission %}
80
- {% translate "Change" %}
81
- {% else %}
82
- {% translate "View" %}
83
- {% endif %}
84
- </a>
54
+ {% if inline_admin_form.original or inline_admin_form.show_url %}
55
+ <tr>
56
+ <td class="original" colspan="{{ inline_admin_form|cell_count }}">
57
+ {% if not inline_admin_formset.opts.hide_title %}
58
+ {% if inline_admin_form.original or inline_admin_form.show_url %}
59
+ <p class="flex font-medium items-center px-3 pt-2 text-xs">
60
+ {% if inline_admin_form.original %}
61
+ <span>
62
+ {% with inline_title=inline_admin_form.original.get_inline_title %}
63
+ {% if inline_title %}
64
+ {{ inline_title }}
65
+ {% else %}
66
+ {{ inline_admin_form.original }}
85
67
  {% endif %}
86
- {% endif %}
68
+ {% endwith %}
69
+ </span>
70
+
71
+ {% if inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %}
72
+ <a href="{% url inline_admin_form.model_admin.opts|admin_urlname:'change' inline_admin_form.original.pk|admin_urlquote %}" class="{{ inline_admin_formset.has_change_permission|yesno:'inlinechangelink,inlineviewlink' }} ml-2 text-primary-600 dark:text-primary-500">
73
+ {% if inline_admin_formset.has_change_permission %}
74
+ {% translate "Change" %}
75
+ {% else %}
76
+ {% translate "View" %}
77
+ {% endif %}
78
+ </a>
79
+ {% endif %}
80
+ {% endif %}
87
81
 
88
- {% if inline_admin_form.show_url %}
89
- <a href="{{ inline_admin_form.absolute_url }}" class="font-medium ml-2 text-primary-600 dark:text-primary-500">
90
- {% translate "View on site" %}
91
- </a>
92
- {% endif %}
93
- </p>
82
+ {% if inline_admin_form.show_url %}
83
+ <a href="{{ inline_admin_form.absolute_url }}" class="font-medium ml-2 text-primary-600 dark:text-primary-500">
84
+ {% translate "View on site" %}
85
+ </a>
94
86
  {% endif %}
95
- {% endif %}
87
+ </p>
88
+ {% endif %}
89
+ {% endif %}
96
90
 
97
- {% if inline_admin_form.needs_explicit_pk_field %}
98
- {{ inline_admin_form.pk_field.field }}
99
- {% endif %}
91
+ {% if inline_admin_form.needs_explicit_pk_field %}
92
+ {{ inline_admin_form.pk_field.field }}
93
+ {% endif %}
100
94
 
101
- {% if inline_admin_form.fk_field %}
102
- {{ inline_admin_form.fk_field.field }}
95
+ {% if inline_admin_form.fk_field %}
96
+ {{ inline_admin_form.fk_field.field }}
97
+ {% endif %}
98
+ </td>
99
+ </tr>
100
+ {% endif %}
101
+
102
+ <tr class="lg:border-b-0 form-row {% if inline_admin_form.original or inline_admin_form.show_url %}has_original{% endif %}{% if forloop.last and inline_admin_formset.has_add_permission %} empty-form{% endif %}" id="{{ inline_admin_formset.formset.prefix }}-{% if not forloop.last %}{{ forloop.counter0 }}{% else %}empty{% endif %}">
103
+ {% spaceless %}
104
+ {% for fieldset in inline_admin_form %}
105
+ {% for line in fieldset %}
106
+ {% for field in line %}
107
+ {% if not field.is_readonly and field.field.is_hidden %}
108
+ {{ field.field }}
103
109
  {% endif %}
104
- </td>
105
- </tr>
106
- {% endif %}
107
-
108
- <tr class="lg:border-b-0 form-row {% if inline_admin_form.original or inline_admin_form.show_url %}has_original{% endif %}{% if forloop.last and inline_admin_formset.has_add_permission %} empty-form{% endif %}" id="{{ inline_admin_formset.formset.prefix }}-{% if not forloop.last %}{{ forloop.counter0 }}{% else %}empty{% endif %}">
109
- {% spaceless %}
110
- {% for fieldset in inline_admin_form %}
111
- {% for line in fieldset %}
112
- {% for field in line %}
113
- {% if not field.is_readonly and field.field.is_hidden %}
114
- {{ field.field }}
115
- {% endif %}
116
- {% endfor %}
117
- {% endfor %}
118
110
  {% endfor %}
119
- {% endspaceless %}
120
-
121
- {% with is_last_row=forloop.last %}
122
- {% for fieldset in inline_admin_form %}
123
- {% for line in fieldset %}
124
- {% with is_last_col=forloop.last %}
125
- {% for field in line %}
126
- {% if field.is_readonly or not field.field.is_hidden %}
127
- <td{% if field.field.name %} class="field-{{ field.field.name }} group field-tabular {% if field.field.errors|length > 0 %} errors{% endif %}{% if inline_admin_form.original %} p-3 lg:py-3{% else %} py-3{% endif %}{% if field.is_checkbox %} align-middle{% else %} align-top{% endif %} {% if is_last_row and not inline_admin_formset.has_add_permission %}{% if is_last_col %}border-0 {% else %}border-b lg:border-0{% endif %}{% else %}border-b{% endif %} border-gray-200 flex items-center before:capitalize before:content-[attr(data-label)] before:mr-auto before:text-gray-500 before:pr-4 lg:before:hidden font-normal px-3 text-left text-sm lg:table-cell dark:border-gray-800 {% if field.field.is_hidden %} !hidden{% endif %}"{% endif %} data-label="{{ field.field.label }}">
128
- {% if field.is_readonly %}
129
- {% include "unfold/helpers/field_readonly_value.html" with tabular=1 %}
130
- {% else %}
131
- {{ field.field }}
132
-
133
- {% if field.field.errors|length > 0 %}
134
- <div class="mt-1 text-red-600 text-sm dark:text-red-500">
135
- {% for error in field.field.errors %}
136
- {{ error }}
137
- {% endfor %}
138
- </div>
139
- {% endif %}
140
- {% endif %}
141
- </td>
111
+ {% endfor %}
112
+ {% endfor %}
113
+ {% endspaceless %}
114
+
115
+ {% with is_last_row=forloop.last %}
116
+ {% for fieldset in inline_admin_form %}
117
+ {% for line in fieldset %}
118
+ {% with is_last_col=forloop.last %}
119
+ {% for field in line %}
120
+ {% if field.is_readonly or not field.field.is_hidden %}
121
+ <td{% if field.field.name %} class="field-{{ field.field.name }} group field-tabular {% if field.field.errors|length > 0 %} errors{% endif %}{% if inline_admin_form.original %} p-3 lg:py-3{% else %} py-3{% endif %}{% if field.is_checkbox %} align-middle{% else %} align-top{% endif %} {% if is_last_row and not inline_admin_formset.has_add_permission %}{% if is_last_col %}border-0 {% else %}border-b lg:border-0{% endif %}{% else %}border-b{% endif %} border-gray-200 flex items-center before:capitalize before:content-[attr(data-label)] before:mr-auto before:text-gray-500 before:pr-4 lg:before:hidden font-normal px-3 text-left text-sm lg:table-cell dark:border-gray-800 {% if field.field.is_hidden %} !hidden{% endif %}"{% endif %} data-label="{{ field.field.label }}">
122
+ {% if field.is_readonly %}
123
+ {% include "unfold/helpers/field_readonly_value.html" with tabular=1 %}
124
+ {% else %}
125
+ {{ field.field }}
126
+
127
+ {% if field.field.errors|length > 0 %}
128
+ <div class="mt-1 text-red-600 text-sm dark:text-red-500">
129
+ {% for error in field.field.errors %}
130
+ {{ error }}
131
+ {% endfor %}
132
+ </div>
133
+ {% endif %}
142
134
  {% endif %}
143
- {% endfor %}
144
- {% endwith %}
135
+ </td>
136
+ {% endif %}
145
137
  {% endfor %}
146
- {% endfor %}
138
+ {% endwith %}
139
+ {% endfor %}
140
+ {% endfor %}
147
141
 
148
- {% if inline_admin_formset.formset.can_delete and inline_admin_formset.has_delete_permission %}
149
- <td class="delete {% if inline_admin_form.original %}p-3 lg:py-3{% else %}py-3{% endif %} text-left text-red-600 border-b border-gray-200 flex items-center before:capitalize before:content-[attr(data-label)] before:mr-auto before:text-gray-500 before:pr-4 lg:before:hidden font-normal px-3 text-sm lg:align-top lg:table-cell lg:w-px dark:border-gray-800" data-label="{% trans "Remove" %}">
150
- {% if inline_admin_form.original %}
151
- <div class="flex flex-row lg:mt-3">
152
- <div class="ml-auto">
153
- {{ inline_admin_form.deletion_field.field|add_css_class:form_classes.checkbox }}
154
- </div>
155
- </div>
156
- {% endif %}
157
- </td>
142
+ {% if inline_admin_formset.formset.can_delete and inline_admin_formset.has_delete_permission %}
143
+ <td class="delete {% if inline_admin_form.original %}p-3 lg:py-3{% else %}py-3{% endif %} text-left text-red-600 border-b border-gray-200 flex items-center before:capitalize before:content-[attr(data-label)] before:mr-auto before:text-gray-500 before:pr-4 lg:before:hidden font-normal px-3 text-sm lg:align-top lg:table-cell lg:w-px dark:border-gray-800" data-label="{% trans "Remove" %}">
144
+ {% if inline_admin_form.original %}
145
+ <div class="flex flex-row lg:mt-3">
146
+ <div class="ml-auto">
147
+ {{ inline_admin_form.deletion_field.field|add_css_class:form_classes.checkbox }}
148
+ </div>
149
+ </div>
158
150
  {% endif %}
159
- {% endwith %}
160
- </tr>
161
- {% endfor %}
162
- </tbody>
163
- </table>
164
- </div>
165
- {% endif %}
151
+ </td>
152
+ {% endif %}
153
+ {% endwith %}
154
+ </tr>
155
+ {% endfor %}
156
+ </tbody>
157
+ </table>
166
158
  </div>
167
159
  </fieldset>
168
160
  </div>
@@ -32,6 +32,8 @@
32
32
  <span class="block text-primary-600 text-xl dark:text-primary-500">{{ site_title }}</span>
33
33
  </h1>
34
34
 
35
+ {% include "unfold/helpers/messages.html" %}
36
+
35
37
  {% include "unfold/helpers/messages/errornote.html" with errors=form.errors %}
36
38
 
37
39
  {% include "unfold/helpers/messages/error.html" with errors=form.non_field_errors %}
@@ -1,3 +1,4 @@
1
- <button {% if submit %}type="submit"{% endif%} {% if name %}name="{{ name }}"{% endif %} class="bg-primary-600 border border-transparent font-medium px-3 py-2 rounded-md text-sm text-white">
2
- {{ children }}
3
- </button>
1
+ <{% if href %}a href="{{ href }}"{% else %}button{% endif%} {% if submit %}type="submit"{% endif%} {% if name %}name="{{ name }}"{% endif %}
2
+ class="border font-medium px-3 py-2 rounded-md text-center whitespace-nowrap {% if variant == "default" %}bg-white dark:border-gray-700 dark:bg-transparent dark:text-white{% else %}bg-primary-600 border-transparent text-white{% endif %}{% if class %} {{ class }}{% endif %}">
3
+ {{ children }}
4
+ </{% if href %}a{% else %}button{% endif%}>
@@ -1,4 +1,4 @@
1
- <div class="border flex flex-col flex-grow overflow-hidden p-6 relative rounded-md shadow-sm dark:border-gray-800{% if class %} {{ class }}{% endif %}">
1
+ <div class="border flex flex-col flex-grow overflow-hidden p-6 relative rounded-md shadow-sm dark:border-gray-800 {% if class %} {{ class }}{% endif %}">
2
2
  {% if title %}
3
3
  <h2 class="border-b font-semibold mb-6 -mt-2 -mx-6 pb-4 px-6 text-font-important-light dark:text-font-important-dark dark:border-gray-800">
4
4
  {{ title }}
@@ -1,21 +1,21 @@
1
1
  <div class="{% if class %}{{ class }}{% endif %}">
2
- <div class="flex flex-row mb-2.5 text-sm">
3
- {% if title %}
4
- <h3 class="text-sm">
5
- {{ title }}
6
- </h3>
2
+ <div class="overflow-hidden relative px-2 py-1 text-sm">
3
+ {% if value %}
4
+ <div class="absolute bottom-0 left-0 rounded top-0 bg-primary-100 z-10 dark:bg-primary-500/20" style="width: {{ value }}%"></div>
7
5
  {% endif %}
8
6
 
9
- {% if description %}
10
- <strong class="font-semibold ml-auto">
11
- {{ description }}
12
- </strong>
13
- {% endif %}
14
- </div>
7
+ <div class="flex flex-row relative z-20">
8
+ {% if title %}
9
+ <h3 class="text-font-default-light dark:text-font-default-dark text-sm">
10
+ {{ title }}
11
+ </h3>
12
+ {% endif %}
15
13
 
16
- <div class="bg-gray-200 flex flex-row h-1 rounded overflow-hidden dark:bg-white/10">
17
- {% if value %}
18
- <div class="bg-primary-500 h-1 rounded-full" style="width: {{ value }}%"></div>
19
- {% endif %}
14
+ {% if description %}
15
+ <strong class="font-semibold text-font-important-light ml-auto dark:text-font-important-dark">
16
+ {{ description }}
17
+ </strong>
18
+ {% endif %}
19
+ </div>
20
20
  </div>
21
21
  </div>
@@ -1 +1 @@
1
- <div class="bg-gray-200 dark:bg-gray-800 dark:border-gray-800 {% if vertical == 1 %}mx-8 w-px{% else%}h-px my-8{% endif %}{% if class %} {{ class }}{% endif %}"></div>
1
+ <div class="bg-gray-200 dark:bg-gray-800 dark:border-gray-800 {% if vertical == 1 %}mx-6 w-px{% else%}h-px my-6{% endif %}{% if class %} {{ class }}{% endif %}"></div>
@@ -27,7 +27,7 @@
27
27
  {% for item in group.items %}
28
28
  {% if item.has_permission %}
29
29
  <li>
30
- <a href="{% if item.link_callback %}{{ item.link_callback }}{% else %}{{ item.link }}{% endif %}" class="flex h-11 items-center -mx-3 px-3 py-2 rounded-md {% if item.active %}bg-gray-100 font-semibold text-primary-600 dark:bg-white/[.06] dark:text-primary-500{% endif %}">
30
+ <a href="{% if item.link_callback %}{{ item.link_callback }}{% else %}{{ item.link }}{% endif %}" class="flex h-11 items-center -mx-3 px-3 py-2 rounded-md hover:text-primary-600 dark:hover:text-primary-500 {% if item.active %}bg-gray-100 font-semibold text-primary-600 dark:bg-white/[.06] dark:text-primary-500{% endif %}">
31
31
  {% if item.icon %}
32
32
  <span class="material-symbols-outlined md-18 mr-3 w-4.5">
33
33
  {{ item.icon }}
@@ -39,7 +39,7 @@
39
39
  </span>
40
40
 
41
41
  {% if item.badge %}
42
- <span class="bg-red-600 font-semibold ml-2 px-1 rounded-sm text-xs text-white">
42
+ <span class="bg-red-600 font-semibold ml-2 px-1 relative rounded-sm text-xs text-white">
43
43
  {% if item.badge_callback %}
44
44
  {{ item.badge_callback }}
45
45
  {% else %}
@@ -10,7 +10,7 @@
10
10
  </span>
11
11
 
12
12
  {% if cl and cl.full_result_count != cl.result_count %}
13
- <span class="ml-2 text-sm">
13
+ <span class="font-medium ml-2 text-font-subtle-light text-sm dark:text-font-subtle-dark">
14
14
  {% blocktranslate count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktranslate %} (<a href="?{% if cl.is_popup %}_popup=1{% endif %}">{% if cl.show_full_result_count %}{% blocktranslate with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktranslate %}{% else %}{% translate "Show all" %}{% endif %}</a>)
15
15
  </span>
16
16
  {% endif %}