mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-20 17:47:58 +02:00
Fix a bug with the field label in the ticket form creation. It was translated twice.
This commit is contained in:
parent
5775de5c4e
commit
4cdea81ae7
@ -28,7 +28,10 @@ $(document).on('change', ':file', function() {
|
|||||||
</div>
|
</div>
|
||||||
<!-- /.panel-heading -->
|
<!-- /.panel-heading -->
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p>{% trans "Unless otherwise stated, all fields are required." %} {% trans "Please provide as descriptive a title and description as possible." %}</p>
|
<p>
|
||||||
|
{% trans "Unless otherwise stated, all fields are required." %}
|
||||||
|
{% trans "Please provide as descriptive a title and description as possible." %}
|
||||||
|
</p>
|
||||||
<form method='post' action='./' enctype='multipart/form-data'>
|
<form method='post' action='./' enctype='multipart/form-data'>
|
||||||
<fieldset class='col-xs-8'>
|
<fieldset class='col-xs-8'>
|
||||||
{% comment %}{{ form|bootstrap }}{% endcomment %}
|
{% comment %}{{ form|bootstrap }}{% endcomment %}
|
||||||
@ -37,7 +40,10 @@ $(document).on('change', ':file', function() {
|
|||||||
{{ field }}
|
{{ field }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<dt><label for='id_{{ field.name }}'>{% trans field.label %}</label>{% if not field.field.required %} <span class='form_optional'>{% trans "(Optional)" %}</span>{% endif %}</dt>
|
<dt>
|
||||||
|
<label for='id_{{ field.name }}'>{{ field.label }}</label>
|
||||||
|
{% if not field.field.required %} <span class='form_optional'>{% trans "(Optional)" %}</span>{% endif %}
|
||||||
|
</dt>
|
||||||
<dd>{{ field }}</dd>
|
<dd>{{ field }}</dd>
|
||||||
{% if field.errors %}<dd class='error'>{{ field.errors }}</dd>{% endif %}
|
{% if field.errors %}<dd class='error'>{{ field.errors }}</dd>{% endif %}
|
||||||
{% if field.help_text %}<dd class='form_help_text help-block'>{% trans field.help_text %}</dd>{% endif %}
|
{% if field.help_text %}<dd class='form_help_text help-block'>{% trans field.help_text %}</dd>{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user