mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Merge branch 'eticketUpdate' into 'master'
partners banner added See merge request !33
This commit is contained in:
commit
93e51776c1
BIN
core/static/core/img/partners.png
Normal file
BIN
core/static/core/img/partners.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
@ -1092,6 +1092,13 @@ class EticketPDFView(CanViewMixin, DetailView):
|
|||||||
renderPDF.draw(d, p, 10.5 * cm - 130, 6.1 * cm)
|
renderPDF.draw(d, p, 10.5 * cm - 130, 6.1 * cm)
|
||||||
p.drawCentredString(10.5 * cm, 6 * cm, code)
|
p.drawCentredString(10.5 * cm, 6 * cm, code)
|
||||||
|
|
||||||
|
partners = ImageReader("core/static/core/img/partners.png")
|
||||||
|
width, height = partners.getSize()
|
||||||
|
size = max(width, height)
|
||||||
|
width = width * 2 / 3
|
||||||
|
height = height * 2 / 3
|
||||||
|
p.drawImage(partners, 0 * cm, 0 * cm, width, height)
|
||||||
|
|
||||||
p.showPage()
|
p.showPage()
|
||||||
p.save()
|
p.save()
|
||||||
return response
|
return response
|
||||||
|
Loading…
Reference in New Issue
Block a user