Commit 87b17ffb authored by Guillaume Lépine's avatar Guillaume Lépine
Browse files

FORMS-725 : Update date management for new macro in lutece 7.0.1

parent 24ccb5a7
......@@ -18,12 +18,12 @@
<#assign field = getFieldByCode( entry, "default_date_value" )>
<#assign default=''>
<#if response?? && response.responseValue??>
<#assign default=response.responseValue>
<#assign default=response.responseValue?number?number_to_date?iso_local>
<#elseif field.valueTypeDate?? >
<#assign default=field.valueTypeDate?iso_local>
</#if>
<#assign placeholder = getFieldValueByCode(entry, "placeholder") >
<@input type='date' language=locale.language name='${idName}' id='${idName}' class='${entry.CSSClass!}' value=(response.toStringValueResponse)!(default)! placeHolder=placeholder />
<@input type='date' language=locale.language name='${idName}' id='${idName}' class='${entry.CSSClass!}' defaultDate=default placeHolder=placeholder />
<@inputGroupItem type='text'>
<@icon style='calendar' />
</@inputGroupItem>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment