mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-21 02:08:17 +03:00
22 lines
822 B
Smarty
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} |