{% extends 'base.html' %} {% block title %}Commandes{% endblock %} {#{% block datepicker_date %} '{{ start_date|date:'Y-m-d' }}'{% endblock %}#} {% block content %}
{% if checked == True%}

RÉSERVATION DEJA EFFECTUÉE A {{status}}

{% elif checked == False %}

RÉSERVATION EFFECTUÉE

{% elif qrError == "qrcode n'existe pas" %}

VOTRE TICKET N'EST PAS VALIDE

{% elif qrError == "date invalide" %}

LA DATE N'EST PAS VALIDE

{% endif%} {% if qr %}
{{ prenom|upper}} {{ nom|upper }} - {{ titre|capfirst }}
{{ date|date:"l d F Y"|title}} à {{ heure_début }} - {% if object.promo_code %} {% if price_with_promo <= 0 or is_invitation %} {% else %} {{ price|floatformat:0 }} {{ price_with_promo|floatformat:0 }} DA {% endif %} {% else %} {% if is_invitation %} {% else %} {{ price|floatformat:0 }} DA {% endif %} {% endif %}

{% if 'BAL' in zone_id or 'VIP' == zone_id %} BALCON {% else %} ZONE {% endif %}

{% if 'BAL' in zone_id %} {{ zone_id|slice:"3:" }} {% else %} {{ zone_id }} {% endif %}

RANGÉE

{{ ligne }}

SIÈGE

{{ chaise }}

qr_code
Édité le {% now "d/m/Y" %} à {% now "H:i" %}
{{ prenom|upper }} {{ nom|upper }} - {{ titre|capfirst }}
{{ date|date:"d/m/Y" }} à {{ heure_début }} - {% if object.promo_code %} {% if price_with_promo <= 0 or is_invitation %} {% else %}

{{ price|floatformat:0 }} {{ price_with_promo|floatformat:0 }} DA

{% endif %} {% else %} {% if is_invitation %} {% else %} {{ price|floatformat:0 }} DA {% endif %} {% endif %}
qr_code
{% elif checked == None and qrError == None %}
{% csrf_token %}
{% endif %}
{% endblock %} {% block page_js %} eraseCookie("commande"); eraseCookie("price"); function redirectPageWithTimer() { var count = 15; // number of seconds var timer = setInterval(function() { count--; if (count == 0) { clearInterval(timer); window.location.href = "/vendeur/ticketList/"; // replace with your URL } document.getElementById("timer").innerHTML = "Redirecting in " + count + " seconds..."; }, 1000); // 1 second document.getElementById("timer").innerHTML = "Redirecting in " + count + " seconds..."; } redirectPageWithTimer(); {% endblock %}