{% extends "base.html" %} {% block title %}{{ ltext(title) }} | {{ app_name }}{% endblock %} {% block content %} {% if item_type == 'department' %} {% set export_url = url_for('admin.departments', export='xlsx') %} {% elif item_type == 'status' %} {% set export_url = url_for('admin.statuses', export='xlsx') %} {% elif item_type == 'priority' %} {% set export_url = url_for('admin.priorities', export='xlsx') %} {% elif item_type == 'category' %} {% set export_url = url_for('admin.categories', export='xlsx') %} {% else %} {% set export_url = '#' %} {% endif %}

{{ ltext(title) }}

{{ ltext('Maintain reference data used by ticket workflows. / إدارة البيانات المرجعية المستخدمة في سير العمل.') }}

{{ ltext('For names and descriptions, use English / العربية in the same field so each language shows the correct value. / للأسماء والأوصاف، استخدم English / العربية داخل نفس الحقل ليظهر لكل لغة النص الصحيح.') }}
{% if export_url != '#' %} {{ ltext('Export Excel / تصدير Excel') }} {% endif %}
{{ form.hidden_tag() }} {% for field in form if field.name not in ['csrf_token', 'submit'] %} {% endfor %}
{{ form.submit(class="button") }}

{{ ltext('Existing Items / العناصر الحالية') }}

{% endblock %}