Browse Source

Made print outs bigger

LNURLwalletsupport
arcbtc 5 years ago
parent
commit
97a13526d9
  1. 9
      lnbits/extensions/withdraw/templates/withdraw/print_qr.html
  2. 4
      lnbits/extensions/withdraw/views.py

9
lnbits/extensions/withdraw/templates/withdraw/print_qr.html

@ -7,14 +7,13 @@
<page size="A4" id="pdfprint">
<table style="width: 100%;">
{% for threes in page %}
<tr style="height: 37.125mm;">
<tr style="height: 59.4mm;">
{% for one in threes %}
<td style="width: 52.5mm;">
<td style="width: 105mm;">
<center>
<h3 class="q-mb-md"></h3>
<qrcode
:value="theurl + '/lnurlwallet?lightning={{one.lnurl}}'"
:options="{width: 110}"
:options="{width: 150}"
></qrcode>
</center>
</td>
@ -73,7 +72,7 @@
show: true,
data: null
}
};
}
}
})
</script>

4
lnbits/extensions/withdraw/views.py

@ -31,6 +31,6 @@ def print_qr(link_id):
for x in link.usescsv.split(","):
linkk = get_withdraw_link(link_id, x) or abort(HTTPStatus.NOT_FOUND, "Withdraw link does not exist.")
links.append(linkk)
page_link = list(chunks(links, 4))
linked = list(chunks(page_link, 8))
page_link = list(chunks(links, 2))
linked = list(chunks(page_link, 5))
return render_template("withdraw/print_qr.html", link=linked, unique=True)

Loading…
Cancel
Save