{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% if form.instance.pk %}{% trans "Edit Category" %}{% else %}{% trans "New Category" %}{% endif %} - PX360{% endblock %} {% block content %}

{% if form.instance.pk %}{% trans "Edit Category" %}{% else %}{% trans "New Category" %}{% endif %}

{% if form.instance.pk %}{{ form.instance.name_en }}{% else %}{% trans "Create a new acknowledgement category" %}{% endif %}

{% trans "Back to Categories" %}

{% trans "Category Details" %}

{% csrf_token %}
{{ form.name_en }} {% if form.name_en.errors %}

{{ form.name_en.errors.0 }}

{% endif %}
{{ form.name_ar }} {% if form.name_ar.errors %}

{{ form.name_ar.errors.0 }}

{% endif %}
{{ form.code }} {% if form.code.errors %}

{{ form.code.errors.0 }}

{% endif %}
{{ form.order }} {% if form.order.errors %}

{{ form.order.errors.0 }}

{% endif %}
{{ form.icon }} {% if form.icon.errors %}

{{ form.icon.errors.0 }}

{% endif %}
{{ form.color }}
{% if form.color.errors %}

{{ form.color.errors.0 }}

{% endif %}
{{ form.is_active }} {% trans "Active" %}
{% trans "Cancel" %}
{% endblock %}