mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-20 12:31:50 +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>
|
<th class="table-active">{% trans "Assigned To" %}</th>
|
||||||
<td>
|
<td>
|
||||||
<!-- assignment drop down -->
|
<!-- assignment drop down -->
|
||||||
{{ ticket.get_assigned_to }}
|
|
||||||
<form method="post" action="{% url 'helpdesk:mass_update' %}">
|
<form method="post" action="{% url 'helpdesk:mass_update' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="ticket_id" value="{{ ticket.id }}">
|
<input type="hidden" name="ticket_id" value="{{ ticket.id }}">
|
||||||
@@ -85,7 +84,7 @@
|
|||||||
|
|
||||||
<div class="d-flex align-items-center gap-2">
|
<div class="d-flex align-items-center gap-2">
|
||||||
<select name="action" class="form-select form-select-sm">
|
<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 %}
|
{% for user in assignable_users %}
|
||||||
<option value="assign_{{ user.id }}" {% if ticket.assigned_to and ticket.assigned_to.id == user.id %}selected{% endif %}>
|
<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 }}
|
{{ user.get_full_name|default:user.username }}
|
||||||
|
Reference in New Issue
Block a user