Hide the answer column from invites when invite questions are disabled
This commit is contained in:
parent
3868421bed
commit
7337f378c0
|
@ -40,7 +40,9 @@
|
||||||
{% include 'snippets/table-sort-header.html' with field="invite__invitees__created_date" sort=sort text=text %}
|
{% include 'snippets/table-sort-header.html' with field="invite__invitees__created_date" sort=sort text=text %}
|
||||||
</th>
|
</th>
|
||||||
<th>{% trans "Email" %}</th>
|
<th>{% trans "Email" %}</th>
|
||||||
<th>{% trans "Answer" %}</th>
|
{% if site.invite_request_question %}
|
||||||
|
<th>{% trans "Answer" %}</th>
|
||||||
|
{% endif %}
|
||||||
<th>
|
<th>
|
||||||
{% trans "Status" as text %}
|
{% trans "Status" as text %}
|
||||||
{% include 'snippets/table-sort-header.html' with field="invite__times_used" sort=sort text=text %}
|
{% include 'snippets/table-sort-header.html' with field="invite__times_used" sort=sort text=text %}
|
||||||
|
@ -55,7 +57,9 @@
|
||||||
<td>{{ req.created_date | naturaltime }}</td>
|
<td>{{ req.created_date | naturaltime }}</td>
|
||||||
<td>{{ req.invite.invitees.first.created_date | naturaltime }}</td>
|
<td>{{ req.invite.invitees.first.created_date | naturaltime }}</td>
|
||||||
<td>{{ req.email }}</td>
|
<td>{{ req.email }}</td>
|
||||||
<td>{{ req.answer }}</td>
|
{% if site.invite_request_question %}
|
||||||
|
<td>{{ req.answer }}</td>
|
||||||
|
{% endif %}
|
||||||
<td>
|
<td>
|
||||||
{% if req.invite.times_used %}
|
{% if req.invite.times_used %}
|
||||||
{% trans "Accepted" %}
|
{% trans "Accepted" %}
|
||||||
|
|
Loading…
Reference in New Issue