mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
Исправлены кастомные поля
This commit is contained in:
parent
84e8d77247
commit
1cb709a1d9
|
@ -1,8 +1,4 @@
|
|||
{* TODO: Добавить поля datetime и time *}
|
||||
|
||||
{$template = ($property->getParam( 'use_time' )) ? 'datetime' : 'date'}
|
||||
|
||||
{component 'field' template=$template
|
||||
{component 'field.date'
|
||||
name = "property[{$property->getId()}][date]"
|
||||
inputClasses = "js-field-{$template}-default"
|
||||
value = $property->getValue()->getValueForForm()
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{component 'field.time'
|
||||
name = "property[{$property->getId()}][date]"
|
||||
inputClasses = "js-field-{$template}-default"
|
||||
value = $property->getValue()->getValueForForm()
|
||||
note = $property->getDescription()
|
||||
label = $property->getTitle()}
|
Loading…
Reference in a new issue