LSformElement::labeledValue: fix/improve display

This commit is contained in:
Benjamin Renard 2020-11-25 15:20:25 +01:00
parent ef9470bf31
commit 88248506cf
2 changed files with 9 additions and 2 deletions

View file

@ -210,6 +210,14 @@ td.LSobject-list, tr.LSobject-list {
width: calc(32vw - 10rem - 16px); width: calc(32vw - 10rem - 16px);
} }
.LSform select.LSformElement_labeledValue {
width: 8em;
}
.LSform input.LSformElement_labeledValue {
width: calc(32vw - 8em);
}
input.LSformElement_select_object_searchAdd, ul.LSformElement_select_object_searchAdd { input.LSformElement_select_object_searchAdd, ul.LSformElement_select_object_searchAdd {
width: 17vw!important; width: 17vw!important;
box-sizing: border-box; box-sizing: border-box;

View file

@ -16,6 +16,5 @@
{else} {else}
<select name='{$attr_name|escape:"htmlall"}_labels[]' class='LSformElement_labeledValue'> <select name='{$attr_name|escape:"htmlall"}_labels[]' class='LSformElement_labeledValue'>
{html_options options=$labels selected=$parseValue.label} {html_options options=$labels selected=$parseValue.label}
</select> </select><input type="text" name='{$attr_name|escape:"htmlall"}_values[]' class='LSformElement_labeledValue' value='{if $parseValue.value}{$parseValue.value|escape:'htmlall'}{else}{$parseValue.raw_value|escape:'htmlall'}{/if}'/>
<input type="text" name='{$attr_name|escape:"htmlall"}_values[]' class='LSformElement_labeledValue' value='{if $parseValue.value}{$parseValue.value|escape:'htmlall'}{else}{$parseValue.raw_value|escape:'htmlall'}{/if}'/>
{/if} {/if}