[python] 1
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- {% extends 'base.html' %}
- {% block title %}Заявки{% endblock %}
- {% block content %}
- <div class="container">
- <h1>Заявки</h1>
- <form method="get" class="mb-3">
- <div class="form-row">
- <div class="form-col">
- <label for="search" class="form-label">Поиск заявок...</label>
- <input type="text" id="search" name="search" class="form-control" placeholder="Введите текст для поиска">
- </div>
- <div class="form-col">
- <label for="status" class="form-label">Статус</label>
- <select id="status" name="status" class="form-control">
- <option value="">Все статусы</option>
- <option value="открыто">Открытые</option>
- <option value="в_работе">В работе</option>
- <option value="закрыто">Закрытые</option>
- </select>
- </div>
- <div class="form-col">
- <label for="company" class="form-label">Компания</label>
- <select id="company" name="company" class="form-control">
- <option value="">Все компании</option>
- {% for company in companies %}
- <option value="{{ company.id }}">{{ company.name }}</option>
- {% endfor %}
- </select>
- </div>
- <div class="form-col">
- <label for="priority" class="form-label">Приоритет</label>
- <select id="priority" name="priority" class="form-control">
- <option value="">Все приоритеты</option>
- <option value="низкий">Низкий</option>
- <option value="средний">Средний</option>
- <option value="высокий">Высокий</option>
- </select>
- </div>
- <div class="form-col">
- <label for="type" class="form-label">Тип</label>
- <select id="type" name="type" class="form-control">
- <option value="">Все типы</option>
- <option value="проблема">Проблема</option>
- <option value="запрос">Запрос</option>
- </select>
- </div>
- <div class="form-col form-col-button">
- <button type="submit" class="btn btn-primary">Фильтр</button>
- </div>
- </div>
- </form>
- <div class="table-container">
- <table class="table table-fullwidth table-responsive" id="tickets-table">
- <thead>
- <tr>
- <th>Выбрать</th>
- <th>Название</th>
- <th>Описание</th>
- <th>Статус</th>
- <th>Компания</th>
- <th>Приоритет</th>
- <th>Тип</th>
- <th>Дата обращения</th>
- <th>Ответственный</th>
- <th>№ телефона</th>
- <th>Время обращения</th>
- <th>Табельный № заявителя</th>
- <th>Подразделение</th>
- <th>Рабочее место</th>
- <th>Проблема (описание)</th>
- <th>Решение (описание)</th>
- </tr>
- </thead>
- <tbody>
- {% for ticket in tickets %}
- <tr>
- <td><input type="radio" name="selected_ticket" value="{{ ticket.id }}"></td>
- <td>{{ ticket.title }}</td>
- <td style="white-space: pre-wrap;">{{ ticket.description }}</td>
- <td>{{ ticket.get_status_display }}</td>
- <td>{{ ticket.company }}</td>
- <td>{{ ticket.get_priority_display }}</td>
- <td>{{ ticket.get_type_display }}</td>
- <td>{{ ticket.received_date }}</td>
- <td>{{ ticket.responsible }}</td>
- <td>{{ ticket.phone_number }}</td>
- <td>{{ ticket.received_time }}</td>
- <td>{{ ticket.employee_id }}</td>
- <td>{{ ticket.department }}</td>
- <td>{{ ticket.problem_description }}</td>
- <td>{{ ticket.workplace }}</td>
- <td>{{ ticket.solution_description }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </div>
- <div class="d-flex justify-content-end mt-3">
- <button class="btn btn-primary" id="editButton">Редактировать</button>
- <button class="btn btn-danger" id="closeButton">Закрыть</button>
- <button class="btn btn-danger" id="deleteButton">Удалить</button>
- </div>
- </div>
- {% endblock %}
Editor
You can edit this paste and save as new: