add leavedescription quest

This commit is contained in:
Laura Klünder 2024-12-25 21:23:35 +01:00
parent cba970e058
commit b9e43fdb58
4 changed files with 110 additions and 8 deletions

View file

@ -5,11 +5,9 @@
<main class="account">
<h3>{{ title }}</h3>
{% if back_url %}
<p>
<a href="{{ back_url }}">&laquo; {% trans 'back' %}</a>
</p>
{% endif %}
{% for line in description %}
<p>{{ line }}</p>
{% endfor %}
<form method="post" action="{{ request.path_info }}">
{% csrf_token %}

View file

@ -34,6 +34,7 @@ class QuestFormView(FormView):
return {
**super().get_context_data(**kwargs),
"title": self.quest.quest_type_label,
"description": self.quest.quest_description,
}
def form_valid(self, form):