{% extends "_base.html" %} {% load static %} {% load filters %} {% block styles %} {{ block.super }} {% endblock styles %} {% block ui_active_tab %}'configuration'{% endblock ui_active_tab %} {% block page_description %}{% endblock page_description %} {% block breadcrumb %} {% include "vouchers/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} {% block content %}

{% block form-title %}Enter voucher details{% endblock %}

{% csrf_token %}
{% for field in form %}
{{ field|add_class:'form-control' }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endfor %}
{% if voucher.id %}

List of voucher partner sessions {% if voucher.status == 'NEW' or voucher.status == 'IN_USE' %} {% endif %}

{% for voucher_partner_session in voucher.voucher_partner_sessions.all %} {% endfor %}
Date Length (minutes)
{{ voucher_partner_session.date |date:'Y-m-d H:i' }} {{ voucher_partner_session.length }}
{% include 'includes/mail_templates_box.html' with instance_id=voucher.id %} {% endif %}
{% endblock %} {% endblock maincontent %} {% block scripts %} {{ block.super }} {% endblock scripts %}