forked from CGM_Public/pretix_original
Add a file upload type to questions (#534)
* Initial stuff * More features
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
{% block content %}
|
||||
<h2>{% trans "Checkout" %}</h2>
|
||||
<p>{% trans "Before we continue, we need you to answer some questions." %}</p>
|
||||
<form class="form-horizontal" method="post">
|
||||
<form class="form-horizontal" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<div class="panel-group" id="questions_group">
|
||||
<div class="panel panel-default">
|
||||
|
||||
@@ -27,7 +27,17 @@
|
||||
{% endif %}
|
||||
{% for q in line.questions %}
|
||||
<dt>{{ q.question }}</dt>
|
||||
<dd>{% if q.answer %}{{ q.answer|linebreaksbr }}{% else %}<em>{% trans "not answered" %}</em>{% endif %}</dd>
|
||||
<dd>
|
||||
{% if q.answer %}
|
||||
{% if q.answer.file %}
|
||||
<span class="fa fa-file"></span> {{ q.answer.file_link }}
|
||||
{% else %}
|
||||
{{ q.answer|linebreaksbr }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<em>{% trans "not answered" %}</em>
|
||||
{% endif %}
|
||||
</dd>
|
||||
{% endfor %}
|
||||
{% for q in line.additional_answers %}
|
||||
<dt>{{ q.question }}</dt>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
Modify order: {{ code }}
|
||||
{% endblocktrans %}
|
||||
</h2>
|
||||
<form class="form-horizontal" method="post">
|
||||
<form class="form-horizontal" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<div class="panel-group" id="questions_accordion">
|
||||
{% if event.settings.invoice_address_asked %}
|
||||
|
||||
Reference in New Issue
Block a user