Skip to content
Snippets Groups Projects
Commit 37d6bf75 authored by Milo Hivert's avatar Milo Hivert
Browse files

stp

parent 691ca71f
Branches
No related tags found
No related merge requests found
No preview for this file type
......@@ -6,37 +6,26 @@
{% endblock %}
{% block content %}
<div class="wrapper">
<div class="block_commande">
<p class="titre_page">Qui travaille ?<p>
<div class="commandes" >
{% for commande in commandes %}
{% if commande.statut == 'en cours' %}
<div class="une_commande">
<p>Commanditaire: {{commande.commanditaire.prenom}} {{commande.commanditaire.nom}}</p>
<p>Adresse de Livraison: {{commande.adresse_livraison}}</p>
<p>Commandé le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}</p>
{% if commande.statut == 'en cours' %}
Commanditaire:{{commande.commanditaire}}
Adresse de Livraison:{{commande.adresse_livraison}}
Commandée le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}
{% if commande.crepe_nature != 0 %}
<p>Crêpes nature : {{commande.crepe_nature}}</p>
Crêpes nature : {{commande.crepe_nature}}
{% endif %}
{% if commande.crepe_confiture_fraise != 0 %}
<p>Crêpes confiture fraise: {{commande.crepe_confiture_fraise}}</p>
{% endif %}
{% if commande.crepe_confiture_abricot != 0 %}
<p>Crêpes confiture abricot: {{commande.crepe_confiture_abricot}}</p>
{% if commande.crepe_confiture != 0 %}
Crêpes confiture : {{commande.crepe_confiture}}
{% endif %}
{% if commande.crepe_nutella != 0 %}
<p>Crêpes nutella : {{commande.crepe_nutella}}</p>
Crêpes nutella : {{commande.crepe_nutella}}
{% endif %}
{% if commande.crepe_sucre != 0 %}
<p>Crêpes sucre : {{commande.crepe_sucre}}</p>
Crêpes sucre : {{commande.crepe_sucre}}
{% endif %}
<p>Livreur: {{commande.livreur.prenom}} {{commande.livreur.nom}}</p>
</div>
Livreur: {{commande.livreur.prenom}} {{commande.livreur.nom}}
{% endif %}
{%endfor%}
</div>
</div>
</div>
<script type="text/javascript" src="{% static 'campagne/js/actualisation.js' %}" ></script>
{%endfor%}
{% endblock %}
\ No newline at end of file
......@@ -13,7 +13,7 @@
<p>Chez nous, pas d'artifices, c'est fait à la main.</p>
<p>Envie que quelqu'un se fasse kidnapper ? 06 52 06 39 92</p>
<p>Besoin de p ? D'un peu de lavende dans tes poumons ? 06 67 48 17 89</p>
<p>Vous êtes au chaud dans votre lit et vous ne voulez pas vous lever ppour éteindre la lumière ? 06 74 85 65 48</p>
<p>Vous êtes au chaud dans votre lit et vous ne voulez pas vous lever pour éteindre la lumière ? 06 74 85 65 48</p>
<p>(On m'a dit que y'avait même un jacuzzi 07 68 04 19 41)</p>
</div>
</div>
......
File deleted
No preview for this file type
No preview for this file type
......@@ -24,7 +24,7 @@ SECRET_KEY = 'django-insecure-^pwp$p=!_g7hoyl&1kul+!v(!y9lu+6@-+1d_&auub18m^h@w(
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = ["138.195.139.213", "localhost", "astegifetobegif.cs-campus.fr", "*"]
......
......@@ -27,7 +27,7 @@ urlpatterns = [
path('mes_livraisons/', views.mes_livraisons, name='mes_livraisons'),
path('commandes_campus/', views.commandes_campus, name='commandes_campus'),
path('mes_commandes/', views.mes_commandes, name="mes_commandes"),
path('mes_commandes/<requete>/', views.commande_passee, name='mes_commandes'),
path('<requete>/', views.commande_passee, name='mes_commandes'),
path('annuler/<pkrequete>/', views.annuler, name="annuler"),
path('prendre_en_charge/<pkrequete>/', views.prendre_en_charge, name="prendre_en_charge"),
path('clore/<pkrequete>/', views.clore, name="clore"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment