File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 64
64
{%- if datetime is not defined or not datetime -%}
65
65
<div {{ block (' widget_container_attributes' ) -}}>
66
66
{%- endif %}
67
+ {%- if label is not same as (false ) -%}
67
68
<div class =" sr-only" >
68
69
{{ form_label(form .year ) }}
69
70
{{ form_label(form .month ) }}
70
71
{{ form_label(form .day ) }}
71
72
</div >
73
+ {%- endif -%}
72
74
73
75
{{- date_pattern | replace ({
74
76
' {{ year }}' : form_widget(form .year ),
89
91
{%- if datetime is not defined or false == datetime -%}
90
92
<div {{ block (' widget_container_attributes' ) -}}>
91
93
{%- endif -%}
92
- <div class =" sr-only" >{{ form_label(form .hour ) }}</div >
94
+ {%- if label is not same as ( false ) -%} <div class =" sr-only" >{{ form_label(form .hour ) }}</div >{%- endif -%}
93
95
{{- form_widget(form .hour ) -}}
94
- {%- if with_minutes -%}:<div class =" sr-only" >{{ form_label(form .minute ) }}</div >{{ form_widget(form .minute ) }}{%- endif -%}
95
- {%- if with_seconds -%}:<div class =" sr-only" >{{ form_label(form .second ) }}</div >{{ form_widget(form .second ) }}{%- endif -%}
96
+ {%- if with_minutes -%}:{%- if label is not same as ( false ) -%} <div class =" sr-only" >{{ form_label(form .minute ) }}</div >{%- endif -%} {{ form_widget(form .minute ) }}{%- endif -%}
97
+ {%- if with_seconds -%}:{%- if label is not same as ( false ) -%} <div class =" sr-only" >{{ form_label(form .second ) }}</div >{%- endif -%} {{ form_widget(form .second ) }}{%- endif -%}
96
98
{%- if datetime is not defined or false == datetime -%}
97
99
</div >
98
100
{%- endif -%}
You can’t perform that action at this time.
0 commit comments