This commit is contained in:
2023-08-01 17:48:06 +03:00
parent 64c3a5cb03
commit dd19068bac
2 changed files with 5 additions and 2 deletions

View File

@@ -8,7 +8,10 @@
<select name="department"
id="id_department"
class="el-form-create-ticket-select">
<option>Отдел: Техническая поддержка</option>
{# <option>Отдел: Техническая поддержка</option>#}
{% for choice in form.fields.department.choices %}
<option title="{{ choice.1 }}" value="{{ choice.0 }}"{% if choice.0 == form.initial.department %} selected{% endif %}>{{ choice.1 }}</option>
{% endfor %}
</select>
{% if form.errors.department %}<div class="errors">{{ form.errors.department }}</div>{% endif %}
</div>