1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-04-30 16:09:22 +03:00

Fix property date

This commit is contained in:
Denis Shakhov 2017-01-30 08:04:02 +07:00
parent a7cf4e6730
commit e917d01d46

View file

@ -1,13 +1,16 @@
{$_mods=''}
{$desc = $property->getDescription()}
{if $property->getParam('use_time')}
{$_mods='inline'}
{/if}
{component 'field.date' mods = $_mods
name = "property[{$property->getId()}][date]"
inputAttributes=[ "data-lsdate-format" => 'DD.MM.YYYY' ]
inputClasses = "js-field-date-default"
value = $property->getValue()->getValueForForm()
note = $property->getDescription()
note = $desc
label = $property->getTitle()}
{if $property->getParam('use_time')}
@ -15,5 +18,6 @@
name = "property[{$property->getId()}][time]"
inputAttributes=[ "data-lstime-time-format" => 'H:i' ]
inputClasses = "js-field-time-default"
note = ($desc) ? ' ' : ''
value = $property->getValue()->getValueTypeObject()->getValueTimeForForm()}
{/if}