{% extends "course/course-base.html" %} {% load i18n %} {% load crispy_forms_tags %} {% load static %} {% block title %} {% if title %} {% comment %} Translators: "[SB]" is abbreviation for "Sandbox" {% endcomment %} {% blocktrans trimmed %} [SB] {{ title }} {% endblocktrans %} {% else %} {% blocktrans %}Page Sandbox{% endblocktrans %} {% endif %} - {{ relate_site_name }} {% endblock %} {% block root_container %}

{% trans "Page Sandbox" %}

{% if page_errors %}
{{ page_errors | safe }}
{% endif %} {% if page_warnings %}
{% blocktrans trimmed %} Warnings were encountered when validating the page: {% endblocktrans %}
    {% for w in page_warnings %}
  • {{ w.location }}: {{ w.text }}
  • {% endfor %}
{% endif %}
{% crispy edit_form %}
{% if have_valid_page %} {{ body|safe }} {% if page_form_html %}
{{ page_form_html|safe }}
{% endif %} {% if feedback or correct_answer %}
{% if feedback %}

{{ feedback.feedback|safe }}

{% if feedback.bulk_feedback %}

{{ feedback.bulk_feedback|safe }}

{% endif %} {% endif %} {% if correct_answer %}

{{ correct_answer|safe }}

{% endif %}
{% endif %} {% else %} {% trans "(Page preview appears here)" %} {% endif %}
{# {{{ codemirror resizing #} {# }}} #} {# {{{ codemirror save -> preview#} {# }}} #} {# {{{ force focus onto cm #} {# }}} #} {% endblock %}