{% extends 'layouts/base.html' %} {% load i18n static %} {% block title %}{% trans "Import Government Tickets" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% trans "Import Government Tickets" %}

{% trans "Upload Excel file to import tickets from government sources" %}

{% trans "Upload File" %}
{% csrf_token %}

{% trans "Instructions" %}

{% trans "Upload an Excel file (.xlsx) with the following columns:" %}

  • {% trans "رقم التذكرة (Ticket Number) - Required" %}
  • {% trans "اسم المشتكي (Complainant Name) - Required" %}
  • {% trans "رقم الهوية (National ID)" %}
  • {% trans "رقم التواصل (Contact Number)" %}
  • {% trans "الموقع (Location)" %}
  • {% trans "القسم الرئيسي (Main Section)" %}
  • {% trans "القسم الفرعي (Subsection)" %}
  • {% trans "تاريخ إنشاء التذكرة (Creation Date)" %}
  • {% trans "وقت إنشاء التذكرة (Creation Time)" %}
  • {% trans "تصنيف الشكوى (Classification)" %}
  • {% trans "محتوى الشكوى (Content) - Required" %}
  • {% trans "حالة الشكوى (Status)" %}
  • {% trans "اسم الموظف (Assigned Staff)" %}

{% trans "Note: The header row should be on the second row (row 2) of the Excel file." %}

{% if preview_data %}
{% trans "Preview (First 5 Rows)" %}
{% for row in preview_data %} {% endfor %}
{% trans "Ticket #" %} {% trans "Complainant" %} {% trans "National ID" %} {% trans "Contact" %} {% trans "Department" %} {% trans "Received Date" %} {% trans "Classification" %} {% trans "Content" %}
{{ row.ticket_number|default:"-" }} {{ row.complainant_name|default:"-" }} {{ row.national_id|default:"-" }} {{ row.contact_number|default:"-" }} {{ row.main_section|default:"-" }} {{ row.received_date|default:"-" }} {{ row.classification|default:"-" }} {{ row.content|default:"-" }}
{% csrf_token %} {% trans "Cancel" %}
{% endif %} {% if errors %}
{% trans "Errors" %}
    {% for error in errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% endblock %}