21 lines
1011 B
HTML
21 lines
1011 B
HTML
{% extends "base.html" %}
|
|
{% block title %}Prompt bearbeiten{% endblock %}
|
|
{% block content %}
|
|
<h1>Prompt bearbeiten</h1>
|
|
{% include "_prompt_tabs.html" %}
|
|
<section class="card">
|
|
<p class="muted">Basis: Version {{ base }}. Gespeichert wird eine neue Version, die noch nicht aktiv ist. Die Begrenzer <daten> und </daten> sind im Text nicht erlaubt.</p>
|
|
<form method="post" action="/prompts/{{ prompt_name }}/draft">
|
|
{{ csrf_input }}
|
|
<input type="hidden" name="base" value="{{ base }}">
|
|
<label for="p-text">Text</label>
|
|
<textarea id="p-text" name="text" class="prompt-text" rows="12" required>{{ text }}</textarea>
|
|
<label for="p-note">Notiz (optional)</label>
|
|
<input id="p-note" name="note" type="text" value="{{ note }}" autocomplete="off">
|
|
<div class="actions"><button type="submit">Als Entwurf speichern</button></div>
|
|
</form>
|
|
{% include "_prompt_notice.html" %}
|
|
<p><a href="/prompts/{{ prompt_name }}">Zurück zur Übersicht</a></p>
|
|
</section>
|
|
{% endblock %}
|