{% macro input_hidden(name, value) %}
{% apply spaceless %}
{% endapply %}
{% endmacro %}
{% macro input_csrf(name) %}
{% from _self import input_hidden %}
{% apply spaceless %}
{{ input_hidden(name|default('_csrf'), csrf_token()) }}
{% endapply %}
{% endmacro %}
{% macro input_text(name, class, value, type, placeholder, required, attributes, tabindex, autofocus, raw) %}
{% apply spaceless %}
0 %}name="{{ name }}"{% else %}readonly{% endif %}
class="{% if not raw|default(false) %}input__text{% if name|length < 1 %} input__text--readonly{% endif %}{% endif %}{{ class|length > 0 ? ' ' ~ class : '' }}"
{% if placeholder|length > 0 %}placeholder="{{ placeholder }}"{% endif %}
{% if value|length > 0 %}value="{{ value }}"{% endif %} {% if required|default(false) %}required{% endif %}
{% if tabindex > 0 %}tabindex="{{ tabindex }}"{% endif %} {% if autofocus|default(false) %}autofocus{% endif %}
{% for name, value in attributes|default([]) %}
{{ name }}{% if value|length > 0 %}="{{ value }}"{% endif %}
{% endfor %}>
{% endapply %}
{% endmacro %}
{% macro input_checkbox_raw(name, checked, class, value, radio, attributes, disabled) %}
{% apply spaceless %}
0 %}name="{{ name }}"{% endif %}
{% if checked %}checked{% endif %}
{% if disabled %}disabled{% endif %}
{% if value|length > 0 %}value="{{ value }}"{% endif %}
{% for name, value in attributes|default([]) %}
{{ name }}{% if value|length > 0 %}="{{ value }}"{% endif %}
{% endfor %}>
{% endapply %}
{% endmacro %}
{% macro input_checkbox(name, text, checked, class, value, radio, attributes, disabled) %}
{% from _self import input_checkbox_raw %}
{% apply spaceless %}
{% endapply %}
{% endmacro %}
{% macro input_file_raw(name, class, accepts, attributes) %}
{% apply spaceless %}
0 %}name="{{ name }}"{% endif %}
class="{{ class|length > 0 ? class : 'input__upload__input' }}"
{% if accepts|length > 0 %}accept="{{ accepts|join(',') }}"{% endif %}
{% for name, value in attributes|default([]) %}
{{ name }}{% if value|length > 0 %}="{{ value }}"{% endif %}
{% endfor %}>
{% endapply %}
{% endmacro %}
{% macro input_file(name, class, accepts, attributes) %}
{% from _self import input_file_raw %}
{% apply spaceless %}
{% endapply %}
{% endmacro %}
{% macro input_select_option(value, key, selected) %}
{% apply spaceless %}
{% endapply %}
{% endmacro %}
{% macro input_select(name, options, selected, value_name, key_name, only_values, class, attributes) %}
{% from _self import input_select_option %}
{% apply spaceless %}
{% endapply %}
{% endmacro %}
{% macro input_colour(name, class, value) %}
{% apply spaceless %}
{% endapply %}
{% endmacro %}