{% import "_includes/forms" as forms %} {% set sections = blx.sections.getAllSections('id') %} {% if sections %} {% if blx.hasPackage('PublishPro') %} {{ forms.selectField({ label: "Section"|t, instructions: "Which section do you want to publish entries to?"|t, id: 'section', name: 'section', options: sections, value: settings.section, toggle: true, targetPrefix: 'section' }) }} {% else %} {% endif %} {% set fieldsInput %} {% for section in sections %} {% set show = ((not settings.section and loop.first) or settings.section == section.id) %} {% endfor %} {% endset %} {{ forms.field({ label: "Fields"|t, instructions: "Which fields should be visible in the widget?"|t }, fieldsInput) }} {% else %}

{{ "No sections exist yet."|t }}

{% endif %}