{% extends "index.html" %}

{% block workspace_content %}
<div>
    <h2>Global configuration</h2>
    <form id="config-forms-container" action="{{ url_for('configuration_update', next=url_for('configuration_update')) }}" method="POST">
        <h3>Base configuration</h3>
        {% with config=base_config %}{% include "_config.html" %}{% endwith %}

        <h3>Default configuration</h3>
        {% with config=config %}{% include "_config.html" %}{% endwith %}

        <button type="submit">Save changes</button>
    </form>
</div>

<script src="{{ url_for('static', filename='js/config.js') }}"></script>
{% endblock %}

{% block scripts %}
<script>
    tutorCommandsToWatch = ["tutor config save"];
    function ShowRunCommandButton() {
        // TODO we shouldn't have to implement dummy functions. We need to get rid of
        // these imperative function calls.
    }
</script>
{% endblock %}
