0.0.11
This commit is contained in:
@@ -18,7 +18,7 @@ function createTicketShow () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function countLetters () {
|
function countLetters () {
|
||||||
let area = document.querySelector("textarea[name=enter-message]")
|
let area = document.querySelector(".el-form-create-ticket-textarea")
|
||||||
let count = area.value.length
|
let count = area.value.length
|
||||||
if (count <= 500) {
|
if (count <= 500) {
|
||||||
let ins_area = document.querySelector(".letrs-count-span")
|
let ins_area = document.querySelector(".letrs-count-span")
|
||||||
|
|||||||
@@ -8,7 +8,10 @@
|
|||||||
<select name="department"
|
<select name="department"
|
||||||
id="id_department"
|
id="id_department"
|
||||||
class="el-form-create-ticket-select">
|
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>
|
</select>
|
||||||
{% if form.errors.department %}<div class="errors">{{ form.errors.department }}</div>{% endif %}
|
{% if form.errors.department %}<div class="errors">{{ form.errors.department }}</div>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user