django-unfold 0.26.0__py3-none-any.whl → 0.27.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.26.0.dist-info → django_unfold-0.27.0.dist-info}/METADATA +11 -2
- {django_unfold-0.26.0.dist-info → django_unfold-0.27.0.dist-info}/RECORD +19 -15
- unfold/admin.py +5 -157
- unfold/contrib/forms/templates/unfold/forms/array.html +31 -0
- unfold/contrib/forms/widgets.py +58 -3
- unfold/decorators.py +3 -0
- unfold/fields.py +200 -0
- unfold/static/unfold/css/styles.css +1 -1
- unfold/templates/admin/change_form.html +0 -2
- unfold/templates/admin/edit_inline/tabular.html +4 -6
- unfold/templates/admin/includes/fieldset.html +2 -32
- unfold/templates/unfold/helpers/display_header.html +1 -1
- unfold/templates/unfold/helpers/field_readonly.html +1 -3
- unfold/templates/unfold/helpers/field_readonly_value.html +1 -0
- unfold/templates/unfold/helpers/fieldset_row.html +53 -0
- unfold/templates/unfold/widgets/clearable_file_input.html +1 -1
- unfold/templates/unfold/widgets/foreign_key_raw_id.html +7 -13
- {django_unfold-0.26.0.dist-info → django_unfold-0.27.0.dist-info}/LICENSE.md +0 -0
- {django_unfold-0.26.0.dist-info → django_unfold-0.27.0.dist-info}/WHEEL +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
{% load i18n %}
|
2
2
|
|
3
3
|
{% if widget.attrs.accept == 'image/*' and widget.is_initial %}
|
4
|
-
<div class="
|
4
|
+
<div class="mb-4 max-w-48">
|
5
5
|
<a href="{{ widget.value.url }}" target="_blank">
|
6
6
|
<img src="{{ widget.value.url }}" alt="{% trans 'Image preview' %}" class="block rounded" />
|
7
7
|
</a>
|
@@ -2,20 +2,14 @@
|
|
2
2
|
{% include 'django/forms/widgets/input.html' %}
|
3
3
|
|
4
4
|
{% if related_url %}
|
5
|
-
<a href="{{ related_url }}" class="related-lookup related-widget-wrapper-link view-related bg-white border cursor-pointer flex items-center h-9.5 justify-center ml-2 rounded shadow-sm shrink-0 text-gray-400 text-sm w-9.5 hover:text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-500 dark:hover:text-gray-200" id="lookup_id_{{ widget.name }}"
|
5
|
+
<a href="{{ related_url }}" class="related-lookup related-widget-wrapper-link view-related bg-white border cursor-pointer flex items-center h-9.5 justify-center ml-2 rounded shadow-sm shrink-0 text-gray-400 text-sm w-9.5 hover:text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-500 dark:hover:text-gray-200" id="lookup_id_{{ widget.name }}">
|
6
6
|
<span class="material-symbols-outlined text-sm">search</span>
|
7
7
|
</a>
|
8
8
|
{% endif %}
|
9
|
-
</div>
|
10
9
|
|
11
|
-
{% if link_label %}
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
{% else %}
|
18
|
-
{{ link_label }}
|
19
|
-
{% endif %}
|
20
|
-
</strong>
|
21
|
-
{% endif %}
|
10
|
+
{% if link_label and link_url %}
|
11
|
+
<a href="{{ link_url }}" title="{{ link_label }}" class="bg-white border cursor-pointer flex items-center h-9.5 justify-center ml-2 rounded shadow-sm shrink-0 text-gray-400 text-sm w-9.5 hover:text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-500 dark:hover:text-gray-200">
|
12
|
+
<span class="material-symbols-outlined text-sm">visibility</span>
|
13
|
+
</a>
|
14
|
+
{% endif %}
|
15
|
+
</div>
|
File without changes
|
File without changes
|