1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/components/property/input/property.date.tpl
2017-01-30 08:04:02 +07:00

23 lines
831 B
Smarty

{$_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 = $desc
label = $property->getTitle()}
{if $property->getParam('use_time')}
{component 'field.time' mods = $_mods
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}