From 219b75e74776ea2d41024281ad000a1c05c55c31 Mon Sep 17 00:00:00 2001 From: Denis Shakhov Date: Mon, 30 Jan 2017 07:19:28 +0700 Subject: [PATCH] Fix field --- .../components/property/input/property.date.tpl | 7 +++++-- .../skin/synio/components/field/css/field.css | 12 +++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) 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