1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Исправлены кастомные поля

This commit is contained in:
Denis Shakhov 2016-11-17 17:39:25 +07:00
parent 84e8d77247
commit 1cb709a1d9
2 changed files with 7 additions and 5 deletions

View file

@ -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()

View file

@ -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()}