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:
parent
28e21c9567
commit
219b75e747
|
@ -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()}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue