Skip to content

Commit 70235a9

Browse files
committed
Fixed datetime widget - Added date_disabled and time_disabled options
1 parent 0bbd5a8 commit 70235a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Resources/views/form/bootstrap_4_layout.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
{%- endif -%}
138138

139139
{{- form_row(form.date, {
140-
disabled: disabled,
140+
disabled: disabled or date_disabled|default(false),
141141
attr: dateAttr
142142
}) -}}
143143
</div>
@@ -150,7 +150,7 @@
150150
{{- form_row(form.time, {
151151
time_interval: time_interval,
152152
time_24hour: time_24hour,
153-
disabled: disabled,
153+
disabled: disabled or time_disabled|default(false),
154154
attr: timeAttr
155155
}) -}}
156156
</div>

0 commit comments

Comments
 (0)