add leavedescription quest
This commit is contained in:
parent
cba970e058
commit
b9e43fdb58
4 changed files with 110 additions and 8 deletions
|
@ -5,11 +5,9 @@
|
|||
<main class="account">
|
||||
<h3>{{ title }}</h3>
|
||||
|
||||
{% if back_url %}
|
||||
<p>
|
||||
<a href="{{ back_url }}">« {% trans 'back' %}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% for line in description %}
|
||||
<p>{{ line }}</p>
|
||||
{% endfor %}
|
||||
|
||||
<form method="post" action="{{ request.path_info }}">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue