Skip to content

Commit 3895fef

Browse files
committed
fix: Tabs using classes: ['navtab'] appear blank after update #62
1 parent 8e310d8 commit 3895fef

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

django_daisy/templates/admin/change_form.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@
7272
<div>
7373
<p class="errornote">
7474
<i class="fa fa-exclamation"></i>
75-
{% blocktranslate count counter=errors|length %}Please correct the error
76-
below.{% plural %}Please correct the errors below.{% endblocktranslate %}
75+
{% blocktranslate count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}
7776
</p>
7877
<ul class="menu">
7978
{% for error in adminform.form.non_field_errors %}
@@ -101,7 +100,7 @@
101100
<fieldset
102101
style="outline: none !important;"
103102
class="mb-3 ltr:!rounded-tl-none rtl:!rounded-tr-none w-full !overflow-auto collapse-arrow collapse fieldset bg-base-100 p-1">
104-
<input type="checkbox" name="fieldsets-5" checked/>
103+
<input type="checkbox" name="fieldsets-5" checked="checked"/>
105104
<div class="collapse-title text-xl font-medium">
106105
{{ fieldset.name|default:opts.verbose_name }}
107106
</div>
@@ -137,7 +136,7 @@
137136
</a>
138137
<fieldset
139138
class="mb-3 tab-content ltr:!rounded-tl-none rtl:!rounded-tr-none w-full collapse-arrow collapse overflow-visible fieldset bg-base-100 p-1">
140-
<input type="radio" name="my-accordion-3"/>
139+
<input type="checkbox" name="fieldset-navtab-{{ forloop.counter }}" checked/>
141140
<div class="collapse-title text-xl font-medium">
142141
{{ fieldset.name|default:opts.verbose_name }}
143142
</div>

0 commit comments

Comments
 (0)