{% extends "otree/Base_UserFacing.html" %} {% block head_title %}{% endblock %} {% block tab_title_data %}{% include 'otree/includes/debug_info_tab_title.html' %}{% endblock %} {% comment %} NOTE: we should keep this page as simple as possible so that 'view source' is friendly i removed many linebreaks to make output HTML cleaner {% endcomment %} {% block body_main %} {% if is_defined('view.is_debug') and view.is_debug %} {% endif %} {% if is_defined('js_vars') and js_vars %}{% endif %} {% if use_standard_layout %}
{% if view.remaining_timeout_seconds() != None %} {% with form_element_id="form" %} {% include 'otree/includes/TimeLimit.html' %} {% endwith %} {% endif %} {% endif %} {% if is_defined('_trials_incomplete') and _trials_incomplete %}
{{ "Cannot proceed to the next page until trials are completed. Check the server log for errors." }}
{% endif %} {% if form.errors %}
{% if form.non_field_error %} {{ form.non_field_error }} {% else %} {{ "Please fix the errors."|gettext }} {% endif %}
{% endif %}
{% if use_standard_layout %}
{% endif %} {% block content %}{% endblock %} {% if use_standard_layout %}
{% endif %} {% if use_standard_layout %}
{{ powered_by_otree }}
{% endif %}
{% if has_trial %} {# for trials, we have 2 forms on the page: the regular #form, whose submit is disabled, and this special form, which can be submitted. it should be empty, because we don't want trial fields to be submitted to the server anyway. #}
{% endif %}
{% if use_standard_layout %}
{% endif %} {# need the check for projects with old MTurkLandingPage #} {% comment %} debug info should go outside otree-body because if the user sets the height of otree-body to 100% that shouldn't include the debug info. {% endcomment %} {% endblock %} {% block debug_info %} {% if is_defined('view.is_debug') and view.is_debug %}
{% include 'otree/includes/debug_info.html' %} {% endif %} {% endblock %} {% block internal_scripts %} {{ super() }} {% if view.remaining_timeout_seconds() != None %} {% include 'otree/includes/TimeLimit.js.html' %} {% endif %} {% if view.preserve_unsubmitted_inputs %} {% endif %} {% endblock %} {% block live %} {% if has_live_method %}
{% endif %} {% endblock %} {% block trial %} {% if has_trial %} {% endif %} {% endblock %}