37 lines
1.7 KiB
HTML
37 lines
1.7 KiB
HTML
{% load static %}
|
|
<form class="form-create-ticket" name="create-ticket">
|
|
|
|
{% if errors.all__ %}<div class="errors_all" style="margin-bottom: 12px;width: 100%;font-size: 16px;">{{ errors.all__ }}</div>{% endif %}
|
|
|
|
{% csrf_token %}
|
|
<select name="department"
|
|
id="id_department"
|
|
class="el-form-create-ticket">
|
|
<option>Отдел: Техническая поддержка</option>
|
|
</select>
|
|
{% if form.errors.department %}<div class="errors">{{ form.errors.department }}</div>{% endif %}
|
|
<input type="text"
|
|
class="el-form-create-ticket"
|
|
name="name"
|
|
id="id_name"
|
|
placeholder="Тема запроса"
|
|
value="{% if form.adding_machine.name %}{{ form.adding_machine.name }}{% endif %}"
|
|
>
|
|
{% if form.errors.name %}<div class="errors">{{ form.errors.name }}</div>{% endif %}
|
|
|
|
<div class="letrs-count" style="color: #27242499;position: relative;top: 20px;left: 780px;display: inline-block;"><span class="letrs-count-span">0</span><span>/500</span></div>
|
|
<textarea name="text"
|
|
id="id_text"
|
|
class="el-form-create-ticket-textarea"
|
|
placeholder="Введите сообщение..."
|
|
value="{% if form.adding_machine.text %}{{ form.adding_machine.text }}{% endif %}"
|
|
onkeyup="countLetters()"></textarea>
|
|
{% if form.errors.text %}<div class="errors">{{ form.errors.text }}</div>{% endif %}
|
|
|
|
<div class="form-create-tickets-btns">
|
|
<button class="create-ticket-btn" onclick="createTicket()">Создать тикет</button>
|
|
<button class="attach-file-btn" onclick="attachFileCreateTicket()"></button>
|
|
{# <input class="create-ticket-file" type="file" value="">#}
|
|
|
|
</div>
|
|
</form> |