forked from DGNum/gestioCOF
Prettify revente/shotgun
This commit is contained in:
parent
5c8164dd3b
commit
6be42d57ca
3 changed files with 33 additions and 6 deletions
|
@ -2,11 +2,26 @@
|
||||||
|
|
||||||
{% block realcontent %}
|
{% block realcontent %}
|
||||||
<h2>Places disponibles immédiatement</h2>
|
<h2>Places disponibles immédiatement</h2>
|
||||||
{% if shotgun %}
|
{% if spectacles %}
|
||||||
<ul class="list-unstyled">
|
<table class="table table-striped stupidtable" id="bda-shotgun">
|
||||||
{% for spectacle in shotgun %}
|
<thead>
|
||||||
<li><a href="{% url "bda-revente-buy" spectacle.id %}">{{spectacle}}</a></li>
|
<tr>
|
||||||
|
<th data-sort="string">Titre</th>
|
||||||
|
<th data-sort="int">Date</th>
|
||||||
|
<th data-sort="string">Lieu</th>
|
||||||
|
<th data-sort="int">Prix</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for spectacle in spectacles %}
|
||||||
|
<tr>
|
||||||
|
{% include "bda/forms/spectacle_label_table.html" with spectacle=spectacle %}
|
||||||
|
<td class="button"><a role="button" class="btn btn-primary" href="{% url 'bda-revente-buy' spectacle.id %}">Racheter</a>
|
||||||
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p> Pas de places disponibles immédiatement, désolé !</p>
|
<p> Pas de places disponibles immédiatement, désolé !</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -660,7 +660,7 @@ def revente_shotgun(request, tirage_id):
|
||||||
)
|
)
|
||||||
shotgun = [sp for sp in spectacles if len(sp.shotguns) > 0]
|
shotgun = [sp for sp in spectacles if len(sp.shotguns) > 0]
|
||||||
|
|
||||||
return render(request, "bda/revente/shotgun.html", {"shotgun": shotgun})
|
return render(request, "bda/revente/shotgun.html", {"spectacles": shotgun})
|
||||||
|
|
||||||
|
|
||||||
@buro_required
|
@buro_required
|
||||||
|
|
|
@ -187,6 +187,18 @@ form.petit-cours_form .remove-btn {
|
||||||
margin-top : 10px;
|
margin-top : 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table#bda-shotgun td {
|
||||||
|
padding: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table#bda-shotgun td.button {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table#bda-shotgun a, table#bda-shotgun a:hover {
|
||||||
|
color: #FFF
|
||||||
|
}
|
||||||
|
|
||||||
tr.dynamic-form td {
|
tr.dynamic-form td {
|
||||||
background: #F0F0F0;
|
background: #F0F0F0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue