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

@@ -18,7 +18,7 @@ function createTicketShow () {
}
function countLetters () {
let area = document.querySelector("textarea[name=enter-message]")
let area = document.querySelector(".el-form-create-ticket-textarea")
let count = area.value.length
if (count <= 500) {
let ins_area = document.querySelector(".letrs-count-span")

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>