mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-21 10:18:19 +03:00
Fix property date
This commit is contained in:
parent
a7cf4e6730
commit
e917d01d46
|
@ -1,13 +1,16 @@
|
||||||
{$_mods=''}
|
{$_mods=''}
|
||||||
|
{$desc = $property->getDescription()}
|
||||||
|
|
||||||
{if $property->getParam('use_time')}
|
{if $property->getParam('use_time')}
|
||||||
{$_mods='inline'}
|
{$_mods='inline'}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{component 'field.date' mods = $_mods
|
{component 'field.date' mods = $_mods
|
||||||
name = "property[{$property->getId()}][date]"
|
name = "property[{$property->getId()}][date]"
|
||||||
inputAttributes=[ "data-lsdate-format" => 'DD.MM.YYYY' ]
|
inputAttributes=[ "data-lsdate-format" => 'DD.MM.YYYY' ]
|
||||||
inputClasses = "js-field-date-default"
|
inputClasses = "js-field-date-default"
|
||||||
value = $property->getValue()->getValueForForm()
|
value = $property->getValue()->getValueForForm()
|
||||||
note = $property->getDescription()
|
note = $desc
|
||||||
label = $property->getTitle()}
|
label = $property->getTitle()}
|
||||||
|
|
||||||
{if $property->getParam('use_time')}
|
{if $property->getParam('use_time')}
|
||||||
|
@ -15,5 +18,6 @@
|
||||||
name = "property[{$property->getId()}][time]"
|
name = "property[{$property->getId()}][time]"
|
||||||
inputAttributes=[ "data-lstime-time-format" => 'H:i' ]
|
inputAttributes=[ "data-lstime-time-format" => 'H:i' ]
|
||||||
inputClasses = "js-field-time-default"
|
inputClasses = "js-field-time-default"
|
||||||
|
note = ($desc) ? ' ' : ''
|
||||||
value = $property->getValue()->getValueTypeObject()->getValueTimeForForm()}
|
value = $property->getValue()->getValueTypeObject()->getValueTimeForForm()}
|
||||||
{/if}
|
{/if}
|
Loading…
Reference in a new issue