1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-21 02:08:17 +03:00
ifhub.club/application/frontend/components/property/input/property.date.tpl
Denis Shakhov 219b75e747 Fix field
2017-01-30 07:19:28 +07:00

22 lines
822 B
Smarty

{$_mods=''}
{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()
label = $property->getTitle()}
{if $property->getParam('use_time')}
{component 'field.time'
mods = "{$_mods} hide-label"
name = "property[{$property->getId()}][time]"
label = ' '
inputAttributes=[ "data-lstime-time-format" => 'H:i' ]
inputClasses = "js-field-time-default"
value = $property->getValue()->getValueTypeObject()->getValueTimeForForm()}
{/if}