tutor-deck/tutordeck/server/templates/configuration.html
Régis Behmo 812a6c9cf2 feat: display launch warning on config change
To achieve that, we had to get rid of the seq_command_executed request
parameter. We replaced it by a cookie, which is cleared after the
warning is displayed.

Note that we had to remove a feature, which was to disable/enable all
inputs while commands were running. This was causing very weird
behaviour, where some disabled buttons were being re-enabled again.

We also had to get rid of the cookieStore, which is not compatible with
non-https access. Http access is required in the self-serve AMI, for
instance.
2025-08-14 16:14:39 +02:00

29 lines
905 B
HTML

{% 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 %}