{% macro null(config) %} {% endmacro %} {% macro reset_button(config, input_type) %} {% endmacro %} {% macro push_button(config) %} {% endmacro %} {% macro push_buttons(config) %}
{% for button in config.push_buttons %} {{ push_button(button) }} {% endfor %}
{% if config.timed == true %}

{{ null(config) }} {% endif %} {% endmacro %} {% macro checkbox(config) %} {% endmacro %} {% macro checkboxes(config) %}
{% for _checkbox in config.checkboxes %} {{ checkbox(_checkbox) }} {% endfor %}

{% if config.show_reset_button != "never" %} {{ reset_button(config, "checkbox") }} {% endif %} {{ null(config) }}
{% endmacro %} {% macro radiobutton(config) %} {% endmacro %} {% macro radiobuttons(config) %}
{% for button in config.radiobuttons %} {{ radiobutton(button) }} {% endfor %}

{% if config.show_reset_button != "never" %} {{ reset_button(config, "radio") }} {% endif %} {{ null(config) }}
{% endmacro %} {% macro dropdown_option(config) %} {% endmacro %} {% macro dropdown(config) %}

{{ null(config) }}
{% endmacro %} {% macro audio_slider(config) %} {{ slider(config) }} {% endmacro %} {% macro color_slider(config) %} {{ slider(config) }} {% for color, value in config.hidden_inputs.items() %} {% endfor %} {% endmacro %} {% macro HTML5_range_slider(config) %} {% endmacro %} {% macro circular_slider(config) %} {# #}
{% endmacro %} {% macro slider(config) %} {% if config.input_type == "HTML5_range_slider" %} {{ HTML5_range_slider(config) }} {% elif config.input_type == "circular_slider" %} {{ circular_slider(config) }} {% endif %}

{{ null(config) }} {% if config.template_filename %} {% include config.template_filename %} {% endif %} {% endmacro %} {% macro multi_slider(config) %}
{% for s in config.sliders %}
{{ s.label }} NA
{% endfor %}
{% endmacro %} {% macro audio_meter(config) %}
{% if config.calibrate %} {{ audio_meter_calibrate(config) }} {% endif %}
{% if config.submit_button %} {{ null(config) }} {% endif %} {% endmacro %} {% macro audio_meter_calibrate(config) %}
{{ multi_slider(config.sliders) }}

{{ pgettext("audio_meter_calibrate", "The decay parameters determine the amount of smoothing that happens to the signal, and have units of seconds.") }} {{ pgettext("audio_meter_calibrate", "A high decay parameter means that the signal takes a long time to decay (i.e. high smoothing).") }} {{ pgettext("audio_meter_calibrate", "There are three decay parameters: one for the displayed audio meter, one for the 'too-high' detector, and one for the 'too-low' detector.") }}

{{ pgettext("audio_meter_calibrate", "The threshold parameters determine the point at which the volume is determined to be 'too high' or 'too low'.") }}

{{ pgettext("audio_meter_calibrate", "The grace parameters determine how long the volume must be outside the respective threshold for a warning message to be triggered.") }}

{{ pgettext("audio_meter_calibrate", "The message duration parameters determine how long warning messages are displayed for.") }}

{% endmacro %} {% macro generic_record(config) %} {% if config.show_meter %} {{ audio_meter(config.meter) }} {% endif %} {% if config.controls %}
{# #}
{% endif %} {% endmacro %} {% macro audio_record(config) %} {{ generic_record(config) }} {{ null(config) }} {% endmacro %} {% macro video_record(config) %} {{ generic_record(config) }}
{{ null(config) }} {% endmacro %} {% macro text(config) %}
<{% if config.one_line %}input{% else %}textarea{% endif %} id="text-input" class="form-control response" type="text" value="" {% if config.block_copy_paste %}onselectstart="return false" oncut="return false" oncopy="return false" onpaste="return false" ondrag="return false" ondrop="return false"{% endif %}><{% if config.one_line %}/input{% else %}/textarea{% endif %}>

{{ null(config) }} {% endmacro %} {% macro number(config) %}

{{ null(config) }} {% endmacro %} {% macro video_slider(config) %}
{{config.__dict__}}
{{ null(config) }} {% endmacro %} {% from "macros/graphics.html" import graphic_%} {% macro graphic(config) %} {{ graphic_(config) }} {% endmacro %} {% macro survey_js(config) %}
{% endmacro %}