1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-04-30 07:59:22 +03:00

Fix field

This commit is contained in:
Denis Shakhov 2017-01-30 07:19:28 +07:00
parent 28e21c9567
commit 219b75e747
2 changed files with 16 additions and 3 deletions

View file

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

View file

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