kai-jacobsen/kontentblocks

View on GitHub
core/Fields/Definitions/templates/text/default.twig

Summary

Maintainability
Test Coverage
{% extends Form.getLayout() %}
{% block fieldmarkup %}
<input
        type="{{ Field.getArg('type', 'text') }}"
    {% for attr, value in Field.getArg('attributes', []) %}
        {{ attr }}="{{ value|esc_attr }}"
    {% endfor %}
    id='{{ Form.getInputFieldId() }}'
    name='{{ Form.getFieldName }}'
    placeholder='{{ Form.getPlaceholder() }}'
    value='{{ Field.getValue()|raw }}' />
{% endblock %}