{% extends 'layouts/base.html' %} {% load i18n %} {% load action_icons %} {% block title %}{% if category %}{% trans "Update Category" %}{% else %}{% trans "Create Category" %}{% endif %}{% endblock %} {% block content %}

{% if category %}{% trans "Update Category" %}{% else %}{% trans "Create Category" %}{% endif %}

{% if category %}{% trans "Edit standard category" %}{% else %}{% trans "Add new standard category" %}{% endif %}

{% action_icon "back" %} {% trans "Back to Categories" %}
{% trans "Category Information" %}
{% csrf_token %}
{{ form.name }} {% if form.name.errors %}
{{ form.name.errors }}
{% endif %}
{{ form.name_ar }} {% if form.name_ar.errors %}
{{ form.name_ar.errors }}
{% endif %}
{{ form.order }} {% trans "Lower numbers appear first in lists" %} {% if form.order.errors %}
{{ form.order.errors }}
{% endif %}
{{ form.description }} {% if form.description.errors %}
{{ form.description.errors }}
{% endif %}
{{ form.is_active }}
{% trans "Cancel" %}
{% trans "Help" %}
{% trans "Category Order" %}

{% trans "Use the order field to control how categories appear in lists and dropdowns. Lower numbers appear first." %}

{% trans "Example:" %}
1 - Patient Safety
2 - Quality Management
3 - Infection Control

{% trans "Active Status" %}

{% trans "Only active categories can be used when creating new standards. Inactive categories remain in the system but are not available for selection." %}

{% endblock %}