mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-28 21:02:31 +02:00
Made print outs bigger
This commit is contained in:
@@ -7,14 +7,13 @@
|
|||||||
<page size="A4" id="pdfprint">
|
<page size="A4" id="pdfprint">
|
||||||
<table style="width: 100%;">
|
<table style="width: 100%;">
|
||||||
{% for threes in page %}
|
{% for threes in page %}
|
||||||
<tr style="height: 37.125mm;">
|
<tr style="height: 59.4mm;">
|
||||||
{% for one in threes %}
|
{% for one in threes %}
|
||||||
<td style="width: 52.5mm;">
|
<td style="width: 105mm;">
|
||||||
<center>
|
<center>
|
||||||
<h3 class="q-mb-md"></h3>
|
|
||||||
<qrcode
|
<qrcode
|
||||||
:value="theurl + '/lnurlwallet?lightning={{one.lnurl}}'"
|
:value="theurl + '/lnurlwallet?lightning={{one.lnurl}}'"
|
||||||
:options="{width: 110}"
|
:options="{width: 150}"
|
||||||
></qrcode>
|
></qrcode>
|
||||||
</center>
|
</center>
|
||||||
</td>
|
</td>
|
||||||
@@ -73,7 +72,7 @@
|
|||||||
show: true,
|
show: true,
|
||||||
data: null
|
data: null
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
@@ -31,6 +31,6 @@ def print_qr(link_id):
|
|||||||
for x in link.usescsv.split(","):
|
for x in link.usescsv.split(","):
|
||||||
linkk = get_withdraw_link(link_id, x) or abort(HTTPStatus.NOT_FOUND, "Withdraw link does not exist.")
|
linkk = get_withdraw_link(link_id, x) or abort(HTTPStatus.NOT_FOUND, "Withdraw link does not exist.")
|
||||||
links.append(linkk)
|
links.append(linkk)
|
||||||
page_link = list(chunks(links, 4))
|
page_link = list(chunks(links, 2))
|
||||||
linked = list(chunks(page_link, 8))
|
linked = list(chunks(page_link, 5))
|
||||||
return render_template("withdraw/print_qr.html", link=linked, unique=True)
|
return render_template("withdraw/print_qr.html", link=linked, unique=True)
|
||||||
|
Reference in New Issue
Block a user