diff --git a/helpdesk/forms.py b/helpdesk/forms.py index 92594fca..cc731c2a 100644 --- a/helpdesk/forms.py +++ b/helpdesk/forms.py @@ -83,6 +83,12 @@ class CustomFieldMixin(object): class EditTicketForm(CustomFieldMixin, forms.ModelForm): + merged_to = forms.ModelChoiceField( + label=_('Merged to'), + help_text=_('This ticket is merged into the selected ticket.'), + queryset=Ticket.objects.all(), + disabled=True + ) class Meta: model = Ticket diff --git a/helpdesk/templates/helpdesk/edit_ticket.html b/helpdesk/templates/helpdesk/edit_ticket.html index 057e0097..fbef1bfb 100644 --- a/helpdesk/templates/helpdesk/edit_ticket.html +++ b/helpdesk/templates/helpdesk/edit_ticket.html @@ -1,58 +1,52 @@ -{% extends "helpdesk/base.html" %}{% load i18n bootstrap4form %} +{% extends "helpdesk/base.html" %} + +{% load i18n bootstrap4form %} {% block helpdesk_title %}{% trans "Edit Ticket" %}{% endblock %} {% block helpdesk_breadcrumb %} -
{% trans "Unless otherwise stated, all fields are required." %} {% trans "Please provide as descriptive a title and description as possible." %}
- -{% trans "Note" %}: {% blocktrans %}Editing a ticket does not send an e-mail to the ticket owner or submitter. No new details should be entered, this form should only be used to fix incorrect details or clean up the submission.{% endblocktrans %}
- -