{% load i18n %} {% comment %} The canvas fieldset, shared by the two change forms that carry one. Two modes, told apart by which data attributes are set: * ``machine-url`` — a saved version. The graph is loaded and saved on its own endpoint, from the "Save graph" button beside it. * ``field`` — an add form. There is no row yet, so the document rides along in the hidden field of that name and is applied once the row has been created; the form's own Save is what stores it, and there is no button of ours. {% endcomment %}

{% translate "Graph" %}

{% if dsm_editor.field %}{{ adminform.form.graph.errors }}{% endif %}
{% if dsm_editor.seed is not None %}{{ dsm_editor.seed|json_script:"dsm-editor-seed" }}{% endif %} {% if dsm_editor.field %}{{ adminform.form.graph }}{% endif %}
{% if dsm_editor.machine_url and not dsm_editor.read_only %} {% endif %} {% if dsm_editor.read_only %} {% translate "This version is no longer a draft, so its graph is read only." %} {% elif dsm_editor.field %} {% translate "Draw the graph here; it is saved with the rest of the form." %} {% endif %}