File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 11< div class ="datetime flex flex-col gap-2 max-w-2xl lg:flex-row lg:group-[.field-row]:flex-row lg:group-[.field-row]:items-center lg:group-[.field-tabular]:flex-row lg:group-[.field-tabular]:items-center ">
22 < div class ="basis-1/2 flex flex-col lg:group-[.field-row]:flex-row group-[.field-row]:gap-2 lg:group-[.field-tabular]:flex-row group-[.field-tabular]:gap-2 ">
3- < div class ="font-medium mb-2 group-[.field-row]:mb-0 group-[.field-row]:flex group-[.field-row]:items-center group-[.field-tabular]:mb-0 group-[.field-tabular]:flex group-[.field-tabular]:items-center ">
4- {{ date_label }}
5- </ div >
6-
73 {% with widget=widget.subwidgets.0 %}
84 < div class ="flex flex-col min-w-52 relative group-[.field-row]:flex-grow group-[.field-tabular]:flex-grow ">
95 {% include widget.template_name %}
128 </ div >
139
1410 < div class ="basis-1/2 flex flex-col lg:ml-auto md:mt-0 lg:group-[.field-row]:flex-row group-[.field-row]:gap-2 lg:group-[.field-tabular]:flex-row group-[.field-tabular]:gap-2 ">
15- < div class ="font-medium mb-2 group-[.field-row]:mb-0 group-[.field-row]:flex group-[.field-row]:items-center group-[.field-tabular]:mb-0 group-[.field-tabular]:flex group-[.field-tabular]:items-center ">
16- {{ time_label }}
17- </ div >
18-
1911 {% with widget=widget.subwidgets.1 %}
2012 < div class ="flex flex-col min-w-52 relative group-[.field-row]:flex-grow group-[.field-tabular]:flex-grow ">
2113 {% include widget.template_name %}
Original file line number Diff line number Diff line change @@ -493,7 +493,10 @@ class UnfoldAdminSplitDateTimeWidget(AdminSplitDateTime):
493493 template_name = "unfold/widgets/split_datetime.html"
494494
495495 def __init__ (self , attrs : Optional [dict [str , Any ]] = None ) -> None :
496- widgets = [UnfoldAdminDateWidget , UnfoldAdminTimeWidget ]
496+ widgets = [
497+ UnfoldAdminDateWidget (attrs = {"placeholder" : _ ("Date" )}),
498+ UnfoldAdminTimeWidget (attrs = {"placeholder" : _ ("Time" )}),
499+ ]
497500 MultiWidget .__init__ (self , widgets , attrs )
498501
499502
You can’t perform that action at this time.
0 commit comments