{% extends "base.html" %} {% block title %}{% if prompt %}{{ prompt.name }}{% else %}New system prompt{% endif %} — System Prompts — SimpleAudit{% endblock %} {% block content %} ← System Prompts

{% if prompt %}{{ prompt.name }}{% else %}New system prompt{% endif %}

{% if shown %}{% include "partials/version_badge.html" with number=shown.version latest=shown_is_latest count=versions|length %}{% endif %}
{% if shown %}
{% if previous %} {% endif %} Clone v{{ shown.version }}
{% csrf_token %}
{% endif %}
{% if cloning %}

Prefilled from {{ cloning.label }}. Nothing is saved until you click Create prompt.

{% endif %} {% if shown and shown != latest %}

Viewing v{{ shown.version }} (latest is v{{ latest.version }}). Saving creates a new version from these values.

{% endif %}
{% csrf_token %}

Content is versioned: changing it saves a new version. Name and description are not. The note explains what changed and why (like a commit message).

Cancel
{% if versions|length > 1 %} {% include "partials/version_diff_modal.html" with id="prompt-diff" title="What changed" versions=versions %} {% include "partials/version_diff_js.html" %} {{ diff_versions|json_script:"diff-data" }} {% endif %} {% endblock %}