mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Fix contributing.md and fix quantity display on eticket
This commit is contained in:
parent
d0cd8a8997
commit
160c7806df
@ -18,14 +18,14 @@ Ensuite, tu fais :
|
||||
Avec cette commande, tu clones le sith AE dans le dossier courant.
|
||||
|
||||
cd Sith
|
||||
virtualenv --clear --python=python3 env_sith`
|
||||
virtualenv --clear --python=python3 env_sith
|
||||
source env_sith/bin/activate
|
||||
pip install -r requirements.txt
|
||||
|
||||
Maintenant, faut passer le sith en mode debug dans le fichier de settings personnalisé.
|
||||
|
||||
echo "DEBUG=True" > sith/settings_custom.py
|
||||
echo 'SITH_URL = "localhost:8000"'% >> sith/settings_custom.py
|
||||
echo 'SITH_URL = "localhost:8000"' >> sith/settings_custom.py
|
||||
|
||||
Enfin, il s'agit de créer la base de donnée de test lors de la première utilisation
|
||||
|
||||
|
@ -69,7 +69,9 @@
|
||||
{{ super() }}
|
||||
<script>
|
||||
$(function(){
|
||||
$("#drop").accordion();
|
||||
$("#drop").accordion({
|
||||
heightStyle: "content"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
@ -1058,7 +1058,7 @@ class EticketPDFView(CanViewMixin, DetailView):
|
||||
p.setFont("Helvetica-Bold", 16)
|
||||
p.drawCentredString(10.5 * cm, 22.6 * cm, eticket.event_date.strftime("%d %b %Y")) # FIXME with a locale
|
||||
p.setFont("Helvetica-Bold", 14)
|
||||
p.drawCentredString(10.5 * cm, 15 * cm, ''.join((user.get_display_name()," : ",str(self.object.quantity)," ",str(_("people(s)")))))
|
||||
p.drawCentredString(10.5 * cm, 15 * cm, "%s : %d %s" % (user.get_display_name(), self.object.quantity, str(_("people(s)"))))
|
||||
p.setFont("Courier-Bold", 14)
|
||||
qrcode = QrCodeWidget(code)
|
||||
bounds = qrcode.getBounds()
|
||||
|
Loading…
Reference in New Issue
Block a user