File tree Expand file tree Collapse file tree 8 files changed +31
-13
lines changed Expand file tree Collapse file tree 8 files changed +31
-13
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ h3 span:nth-child(3) {
443443}
444444
445445/*******************************************************
446- Collapsed
446+ Fieldset collapsible
447447 *******************************************************/
448448fieldset .collapsed > div {
449449 display : none;
@@ -462,6 +462,19 @@ fieldset.collapsed .collapse-toggle {
462462 @apply inline;
463463}
464464
465+ fieldset details > summary {
466+ @apply list-none
467+ }
468+
469+ fieldset details > summary : after {
470+ @apply material-symbols-outlined absolute right-3 top-3.5;
471+ content : "expand_more" ;
472+ }
473+
474+ fieldset details [open ] > summary : after {
475+ @apply rotate-180;
476+ }
477+
465478/*******************************************************
466479 Calendar
467480 *******************************************************/
Original file line number Diff line number Diff line change 11{% load admin_urls i18n unfold %}
22
33< div class ="js-inline-admin-formset inline-group " id ="{{ inline_admin_formset.formset.prefix }}-group " data-inline-type ="stacked " data-inline-formset ="{{ inline_admin_formset.inline_formset_data }} " {% if inline_admin_formset.opts.tab %}x-show ="activeTab == '{{ inline_admin_formset.opts.verbose_name|slugify }}' "{% else %}x-show ="activeTab == 'general' "{% endif %} >
4- < fieldset class ="module {{ inline_admin_formset.classes }} ">
5- < h2 class ="bg-gray-100 border border-transparent font-semibold mb-6 px-4 py-3 rounded-md text-font-important-light text-sm lg:-mx-4 dark:bg-white/[.02] dark:border dark:border-gray-800 dark:text-font-important-dark {% if inline_admin_formset.opts.tab %}hidden{% endif %} ">
4+ < fieldset class ="module relative {{ inline_admin_formset.classes }} " aria-labelledby ="{{ inline_admin_formset.formset.prefix }}-heading ">
5+ {% if inline_admin_formset.is_collapsible %}< details > < summary > {% endif %}
6+
7+ < h2 id ="{{ inline_admin_formset.formset.prefix }}-heading " class ="inline-heading bg-gray-100 border border-transparent font-semibold mb-6 px-4 py-3 rounded-md text-font-important-light text-sm lg:-mx-4 dark:bg-white/[.02] dark:border dark:border-gray-800 dark:text-font-important-dark {% if inline_admin_formset.opts.tab %}hidden{% endif %} {% if inline_admin_formset.is_collapsible %} cursor-pointer{% endif %} ">
68 {% if inline_admin_formset.formset.max_num == 1 %}
79 {{ inline_admin_formset.opts.verbose_name|capfirst }}
810 {% else %}
911 {{ inline_admin_formset.opts.verbose_name_plural|capfirst }}
1012 {% endif %}
1113 </ h2 >
1214
15+ {% if inline_admin_formset.is_collapsible %}</ summary > {% endif %}
16+
1317 {{ inline_admin_formset.formset.management_form }}
1418 {% include "unfold/helpers/messages/error.html" with errors=inline_admin_formset.formset.non_form_errors %}
1519
@@ -92,5 +96,7 @@ <h3 class="bg-gray-50 border-b border-gray-200 flex font-medium items-center gap
9296 </ div >
9397 {% endfor %}
9498 </ div >
99+
100+ {% if inline_admin_formset.is_collapsible %}</ details > {% endif %}
95101 </ fieldset >
96102</ div >
Original file line number Diff line number Diff line change 44 < div class ="tabular inline-related {% if forloop.last %}last-related{% endif %} ">
55 {{ inline_admin_formset.formset.management_form }}
66
7- < fieldset class ="module {{ inline_admin_formset.classes }} min-w-0 ">
8- < h2 class ="bg-gray-100 border border-transparent font-semibold mb-6 px-4 py-3 rounded-md text-font-important-light text-sm lg:-mx-4 dark:bg-white/[.02] dark:border dark:border-gray-800 dark:text-font-important-dark {% if inline_admin_formset.opts.tab %}hidden{% endif %} ">
7+ < fieldset class ="module relative {{ inline_admin_formset.classes }} min-w-0 " aria-labelledby ="{{ inline_admin_formset.formset.prefix }}-heading ">
8+ {% if inline_admin_formset.is_collapsible %}< details > < summary > {% endif %}
9+
10+ < h2 id ="{{ inline_admin_formset.formset.prefix }}-heading " class ="bg-gray-100 border border-transparent font-semibold mb-6 px-4 py-3 rounded-md text-font-important-light text-sm lg:-mx-4 dark:bg-white/[.02] dark:border dark:border-gray-800 dark:text-font-important-dark {% if inline_admin_formset.opts.tab %}hidden{% endif %} {% if inline_admin_formset.is_collapsible %} cursor-pointer{% endif %} ">
911 {% if inline_admin_formset.formset.max_num == 1 %}
1012 {{ inline_admin_formset.opts.verbose_name|capfirst }}
1113 {% else %}
1214 {{ inline_admin_formset.opts.verbose_name_plural|capfirst }}
1315 {% endif %}
1416 </ h2 >
1517
18+ {% if inline_admin_formset.is_collapsible %}</ summary > {% endif %}
19+
1620 {{ inline_admin_formset.formset.non_form_errors }}
1721
1822 < 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 ">
@@ -173,6 +177,8 @@ <h2 class="bg-gray-100 border border-transparent font-semibold mb-6 px-4 py-3 ro
173177 {% endfor %}
174178 </ table >
175179 </ div >
180+
181+ {% if inline_admin_formset.is_collapsible %}</ details > {% endif %}
176182 </ fieldset >
177183 </ div >
178184</ div >
Original file line number Diff line number Diff line change 66 </ a >
77
88 < nav class ="absolute bg-white border flex flex-col leading-none py-1 -right-2 rounded shadow-lg top-7 w-52 z-50 dark:bg-gray-800 dark:border-gray-700 " x-cloak x-show ="openUserLinks " @click.outside ="openUserLinks = false ">
9- {% include "unfold/helpers/caret.html" %}
10-
119 < div class ="border-b border-gray-100 flex flex-row flex-shrink-0 items-start justify-start mb-1 pb-1 dark:border-gray-700 ">
1210 < span class ="block mx-1 px-3 py-2 truncate ">
1311 {% firstof user.get_short_name user.get_username %}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111 </ a >
1212
1313 < div class ="absolute bg-white border flex flex-col leading-none py-1 -right-2 rounded shadow-lg top-7 w-52 z-50 dark:bg-gray-800 dark:border-gray-700 " x-cloak x-show ="openLanguageLinks " @click.outside ="openLanguageLinks = false ">
14- {% include "unfold/helpers/caret.html" %}
15-
1614 {% for language in languages %}
1715 < form action ="{% url 'set_language' %} " method ="post " class ="flex w-full ">
1816 {% csrf_token %}
Original file line number Diff line number Diff line change 88 </ a >
99
1010 < nav class ="absolute bg-white border flex flex-col leading-none py-1 -right-2 rounded shadow-lg top-7 w-40 z-50 dark:bg-gray-800 dark:border-gray-700 " x-cloak x-show ="openTheme " @click.outside ="openTheme = false ">
11- {% include "unfold/helpers/caret.html" %}
12-
1311 < a class ="cursor-pointer flex flex-row leading-none mx-1 px-3 py-1.5 rounded hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-gray-200 "
1412 x-on:click ="adminTheme = 'dark' "
1513 x-bind:class ="adminTheme == 'dark' && 'text-primary-600 dark:text-primary-500 dark:hover:!text-primary-500 hover:!text-primary-600' ">
You can’t perform that action at this time.
0 commit comments