forked from DGNum/gestioCOF
interface de revente de places
This commit is contained in:
parent
ca39dc813b
commit
2aaf9f681e
2 changed files with 37 additions and 25 deletions
|
@ -1,26 +1,29 @@
|
|||
{% extends "base_title.html" %}
|
||||
{% load staticfiles %}
|
||||
|
||||
{% block extra_head %}
|
||||
<link type="text/css" rel="stylesheet" href="{% static "css/bda.css" %}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block realcontent %}
|
||||
|
||||
<h1>Revente de place</h1>
|
||||
<form action="" method="post" id="resellform">
|
||||
{% if no_resell %}
|
||||
<h2>Places non revendues</h2>
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
{% if form.spectacle.errors %}<ul class="errorlist"><li>Sélectionnez un spetacle</li></ul>{% endif %}
|
||||
<p>
|
||||
<pre>
|
||||
Bonjour,<br />
|
||||
<br />
|
||||
Je souhaite revendre {{ form.count }} place(s) pour {{ form.spectacle }}.<br />
|
||||
Contactez-moi par email si vous êtes intéressé !<br />
|
||||
<br />
|
||||
{{ user.get_full_name }} ({{ user.email }})
|
||||
</pre>
|
||||
</p>
|
||||
<input type="submit" value="Envoyer" />
|
||||
<ol>
|
||||
{% for attribution in no_resell %}
|
||||
<li>{{attribution.spectacle}} <input type="checkbox" name="resell" value="{{attribution.id}}"></li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
<input type="submit" value="Revendre les places sélectionnées">
|
||||
</form>
|
||||
{%endif%}
|
||||
<h2>Places en cours de revente</h2>
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
<ol>
|
||||
{% for attribution in resell %}
|
||||
<li>{{attribution.spectacle}} <input type="checkbox" name="annul" value="{{attribution.id}}"></li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
<input type="submit" value="Annuler les reventes sélectionnées">
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue