{% extends "base.html" %} {% load i18n static crispy_forms_tags %} {% block title %}{% if form.instance.pk %}{% trans "Edit Package" %}{% else %}{% trans "New Package" %}{% endif %} - Tenhal{% endblock %} {% block css %} {% endblock %} {% block content %}

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

{% csrf_token %}
{% trans "Package Information" %}
{{ form.name_en }} {% if form.name_en.errors %}
{{ form.name_en.errors }}
{% endif %}
{{ form.name_ar }} {% if form.name_ar.errors %}
{{ form.name_ar.errors }}
{% endif %}
{{ form.price }} {% if form.price.errors %}
{{ form.price.errors }}
{% endif %}
{{ form.validity_days }} {% if form.validity_days.errors %}
{{ form.validity_days.errors }}
{% endif %}
{{ form.description }} {% if form.description.errors %}
{{ form.description.errors }}
{% endif %}
{{ form.is_active }}
{% trans "Services Included" %}
{% trans "Total Sessions" %} 0
{{ service_formset.management_form }}
{% for service_form in service_formset %}
{{ service_form.service }} {% if service_form.service.errors %}
{{ service_form.service.errors }}
{% endif %}
{{ service_form.sessions }} {% if service_form.sessions.errors %}
{{ service_form.sessions.errors }}
{% endif %}
{% if not service_form.instance.pk or service_formset.can_delete %} {% endif %} {{ service_form.id }}
{{ service_form.DELETE }}
{% endfor %}
{% trans "Cancel" %}
{% trans "Help" %}

{% trans "Create service packages for bundled pricing." %}

  • {% trans "Set package name and price" %}
  • {% trans "Add services and specify sessions for each" %}
  • {% trans "Total sessions are calculated automatically" %}
  • {% trans "Set validity period" %}
{% endblock %} {% block js %} {% endblock %}