diff --git a/application/frontend/components/property/input/property.date.tpl b/application/frontend/components/property/input/property.date.tpl index 8b19b47d..52e35e4a 100644 --- a/application/frontend/components/property/input/property.date.tpl +++ b/application/frontend/components/property/input/property.date.tpl @@ -2,7 +2,8 @@ {if $property->getParam('use_time')} {$_mods='inline'} {/if} -{component 'field.date' mods = $_mods +{component 'field.date' + mods = $_mods name = "property[{$property->getId()}][date]" inputAttributes=[ "data-lsdate-format" => 'DD.MM.YYYY' ] inputClasses = "js-field-date-default" @@ -11,8 +12,10 @@ label = $property->getTitle()} {if $property->getParam('use_time')} - {component 'field.time' mods = $_mods + {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()} diff --git a/application/frontend/skin/synio/components/field/css/field.css b/application/frontend/skin/synio/components/field/css/field.css index 959f2a6d..6a9f5fd3 100644 --- a/application/frontend/skin/synio/components/field/css/field.css +++ b/application/frontend/skin/synio/components/field/css/field.css @@ -38,7 +38,17 @@ select[multiple].ls-field-input { max-width: 300px; } /** * Inline */ -.ls-field--inline { display: inline-block; } +.ls-field--inline { + vertical-align: top; + display: inline-block; +} + +/** + * Hide label + */ +.ls-field--hide-label .ls-field-label { + visibility: hidden; +} /** * Checkbox