38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
|
|
{% extends "base.html" %}
|
||
|
|
|
||
|
|
{% block title %}提供反馈{% endblock %}
|
||
|
|
|
||
|
|
{% block content %}
|
||
|
|
<section class="feedback-form">
|
||
|
|
<h1>为提示词提供反馈</h1>
|
||
|
|
|
||
|
|
<div class="prompt-preview">
|
||
|
|
<h3>原始输入:</h3>
|
||
|
|
<p>{{ prompt.input_text }}</p>
|
||
|
|
<h3>生成的提示词:</h3>
|
||
|
|
<p>{{ prompt.generated_text }}</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<form method="POST">
|
||
|
|
{{ form.hidden_tag() }}
|
||
|
|
<div class="form-group">
|
||
|
|
{{ form.rating.label }}
|
||
|
|
{{ form.rating(class="form-control") }}
|
||
|
|
{% for error in form.rating.errors %}
|
||
|
|
<span class="error">{{ error }}</span>
|
||
|
|
{% endfor %}
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
{{ form.comment.label }}
|
||
|
|
{{ form.comment(class="form-control", rows=4) }}
|
||
|
|
{% for error in form.comment.errors %}
|
||
|
|
<span class="error">{{ error }}</span>
|
||
|
|
{% endfor %}
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
{{ form.submit(class="btn btn-primary") }}
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</section>
|
||
|
|
{% endblock %}
|