mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-12 18:00:45 +01:00
Show Due date on public view ticket if it is set.
Also change default to empty string when a custom field value is None.
This commit is contained in:
parent
4ee74e6667
commit
58a5387779
@ -15,6 +15,13 @@
|
||||
<td>{{ ticket.created|date:"r" }} ({{ ticket.created|naturaltime }})</td>
|
||||
</tr>
|
||||
|
||||
{% if ticket.due_date %}
|
||||
<tr>
|
||||
<th>{% trans "Due On" %}</th>
|
||||
<td>{{ ticket.due_date|date:"r" }} ({{ ticket.due_date|naturaltime }})</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
<tr>
|
||||
<th>{% trans "Submitter E-Mail" %}</th>
|
||||
<td>{{ ticket.submitter_email }}</td>
|
||||
@ -28,8 +35,9 @@
|
||||
{% for customfield in ticket.ticketcustomfieldvalue_set.all %}
|
||||
<tr>
|
||||
<th>{{ customfield.field.label }}</th>
|
||||
<td>{{ customfield.value }}</td>
|
||||
</tr>{% endfor %}
|
||||
<td>{{ customfield.value|default:"" }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
{% if tags_enabled %}
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user