{% import "_includes/forms" as forms %} {% set blockTypeInput %}
{{ "Block Types"|t }}
{% for blockType in settings.getBlockTypes() %}
{% if blockType.name %}{{ blockType.name }}{% else %} {% endif %}
{% if blockType.handle %}{{ blockType.handle }}{% else %} {% endif %}
{% endfor %}
{{ "New block type"|t }}
{% endset %}
{{ forms.field({ label: "Configuration"|t, instructions: "Define the types of blocks that can be created within this Matrix field, as well as the fields each block type is made up of."|t, name: 'config' }, blockTypeInput) }}
{{ forms.textField({ label: "Max Blocks"|t, instructions: "The maximum number of blocks the field is allowed to have."|t, id: 'maxBlocks', name: 'maxBlocks', value: settings.maxBlocks, size: 3, errors: settings.getErrors('maxBlocks') }) }}