{% import "_includes/forms" as forms %}


{{ forms.textField({
    label: "Title"|t('app'),
    instructions: "Enter a custom widget title, or leave blank to use default."|t('freeform'),
    id: 'title',
    name: 'title',
    value: settings.title,
    errors: settings.getErrors('title')
}) }}

{{ forms.textField({
    label: "Limit"|t('freeform'),
    instructions: "The maximum number of submissions to show."|t('freeform'),
    id: 'limit',
    name: 'limit',
    value: settings.limit,
    errors: settings.getErrors('limit')
}) }}

{{ forms.checkboxSelectField({
    label: "Forms"|t('freeform'),
    instructions: "Select the forms for which submission data should be included."|t('freeform'),
    id: 'formIds',
    name: 'formIds',
    options: formOptions,
    values: settings.formIds|length ? settings.formIds : '*',
    errors: settings.getErrors('formIds'),
    showAllOption: true,
}) }}
