From 4cdea81ae7e50253231107c79a8df2b7e979fbcd Mon Sep 17 00:00:00 2001 From: bbe Date: Tue, 9 Jun 2020 17:31:31 +0200 Subject: [PATCH] Fix a bug with the field label in the ticket form creation. It was translated twice. --- helpdesk/templates/helpdesk/create_ticket.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/helpdesk/templates/helpdesk/create_ticket.html b/helpdesk/templates/helpdesk/create_ticket.html index d886a2ee..a17e707d 100644 --- a/helpdesk/templates/helpdesk/create_ticket.html +++ b/helpdesk/templates/helpdesk/create_ticket.html @@ -28,7 +28,10 @@ $(document).on('change', ':file', function() {
-

{% trans "Unless otherwise stated, all fields are required." %} {% trans "Please provide as descriptive a title and description as possible." %}

+

+ {% trans "Unless otherwise stated, all fields are required." %} + {% trans "Please provide as descriptive a title and description as possible." %} +

{% comment %}{{ form|bootstrap }}{% endcomment %} @@ -37,7 +40,10 @@ $(document).on('change', ':file', function() { {{ field }} {% else %}
-
{% if not field.field.required %} {% trans "(Optional)" %}{% endif %}
+
+ + {% if not field.field.required %} {% trans "(Optional)" %}{% endif %} +
{{ field }}
{% if field.errors %}
{{ field.errors }}
{% endif %} {% if field.help_text %}
{% trans field.help_text %}
{% endif %}