{% embed "MimotoCMS/components/forms/FormComponent.twig" with {"type": "list", button:true, buttonLabel:'Add', buttonIcon:'plus', buttonOnClick:"Mimoto.CMS.formFieldListItemAdd('"~Aimless.meta('type')~"', '"~Aimless.meta('id')~"', '"~Aimless.fieldId()~"')", target:'page' } %}

    {% block form_component_element %}

        {# showOnEmpty / hideOmEmtpy on empty collection #}

        <ul class="MimotoCMS_forms_input_List js-list js-list-sortable" data-aimless-contains="{{ Aimless.fieldId() }}" data-aimless-component="_Mimoto_form_input_list-item">

            {{ Aimless.value(true, '_Mimoto_form_input_list-item', { 'title': 'label', 'subtitle': 'type' }, { sInputFieldType:Aimless.meta('type'), sInputFieldId:Aimless.meta('id'), sPropertySelector:Aimless.fieldId() } ) }}

            {#
                // 1. mapping in settings
                // 2. type: { 'componentVar1':'entityVar1', 'componentVar2':'entityVar2' } general key/value pair
            #}

        </ul>

        <input type="hidden" data-aimless-input-type="list" {{ Aimless.input() }} value='{{ Aimless.value() }}' />

    {% endblock %}

{% endembed %}

{% embed "MimotoCMS/components/forms/FormComponent.twig" with {"type": "list", button:true, buttonLabel:'Add', buttonIcon:'plus', buttonOnClick:"Mimoto.CMS.formFieldListItemAdd('"~Aimless.meta('type')~"', '"~Aimless.meta('id')~"', '"~Aimless.fieldId()~"')", target:'page' } %}

    {% block form_component_element %}

        {# showOnEmpty / hideOmEmtpy on empty collection #}

        <ul class="MimotoCMS_forms_input_List js-list js-list-sortable" data-aimless-contains="{{ Aimless.fieldId() }}" data-aimless-component="_Mimoto_form_input_list-item">

            {{ Aimless.value(true, '_Mimoto_form_input_list-item', null, { sInputFieldType:Aimless.meta('type'), sInputFieldId:Aimless.meta('id'), sPropertySelector:Aimless.fieldId() } ) }}

            {#
                // 1. mapping in settings
                // 2. type: { 'componentVar1':'entityVar1', 'componentVar2':'entityVar2' } general key/value pair
            #}

        </ul>

        <input type="hidden" data-aimless-input-type="list" {{ Aimless.input() }} value='{{ Aimless.value() }}' />

    {% endblock %}

{% endembed %}

Fix for showing list items
Fix for showing list items
