mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-18 03:40:02 +02:00
reduce redundant current user entries in assign ticket
This commit is contained in:
@@ -77,7 +77,6 @@
|
||||
<th class="table-active">{% trans "Assigned To" %}</th>
|
||||
<td>
|
||||
<!-- assignment drop down -->
|
||||
{{ ticket.get_assigned_to }}
|
||||
<form method="post" action="{% url 'helpdesk:mass_update' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="ticket_id" value="{{ ticket.id }}">
|
||||
@@ -85,7 +84,7 @@
|
||||
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<select name="action" class="form-select form-select-sm">
|
||||
<option disabled selected>Assign to...</option>
|
||||
<option disabled selected>Unassigned</option>
|
||||
{% for user in assignable_users %}
|
||||
<option value="assign_{{ user.id }}" {% if ticket.assigned_to and ticket.assigned_to.id == user.id %}selected{% endif %}>
|
||||
{{ user.get_full_name|default:user.username }}
|
||||
|
Reference in New Issue
Block a user