{% extends 'base.html' %} {% block title %}{{ title }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ title }}
{% csrf_token %}
{{ form.code }} {% if form.code.errors %}
{% for error in form.code.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.description }} {% if form.description.errors %}
{% for error in form.description.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.discount_type }} {% if form.discount_type.errors %}
{% for error in form.discount_type.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.discount_percentage }} {% if form.discount_percentage.help_text %}
{{ form.discount_percentage.help_text }}
{% endif %} {% if form.discount_percentage.errors %}
{% for error in form.discount_percentage.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.discount_amount }} {% if form.discount_amount.errors %}
{% for error in form.discount_amount.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.max_discount_amount }} {% if form.max_discount_amount.help_text %}
{{ form.max_discount_amount.help_text }}
{% endif %} {% if form.max_discount_amount.errors %}
{% for error in form.max_discount_amount.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.valid_from }} {% if form.valid_from.errors %}
{% for error in form.valid_from.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.valid_until }} {% if form.valid_until.errors %}
{% for error in form.valid_until.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.minimum_amount }} {% if form.minimum_amount.errors %}
{% for error in form.minimum_amount.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.maximum_uses_total }} {% if form.maximum_uses_total.help_text %}
{{ form.maximum_uses_total.help_text }}
{% endif %} {% if form.maximum_uses_total.errors %}
{% for error in form.maximum_uses_total.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.maximum_uses_per_user }} {% if form.maximum_uses_per_user.help_text %}
{{ form.maximum_uses_per_user.help_text }}
{% endif %} {% if form.maximum_uses_per_user.errors %}
{% for error in form.maximum_uses_per_user.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.apply_to_all_brands }}
{{ form.apply_to_all_brands.help_text }}
{% if form.apply_to_all_brands.errors %}
{% for error in form.apply_to_all_brands.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.apply_to_all_products }}
{{ form.apply_to_all_products.help_text }}
{% if form.apply_to_all_products.errors %}
{% for error in form.apply_to_all_products.errors %} {{ error }} {% endfor %}
{% endif %}
{{ form.apply_to_all_services }}
{{ form.apply_to_all_services.help_text }}
{% if form.apply_to_all_services.errors %}
{% for error in form.apply_to_all_services.errors %} {{ error }} {% endfor %}
{% endif %}
Settings
{{ form.is_active }}
{{ form.single_use }}
Cancel
{% endblock %} {% block extra_js %} {% endblock %}