From 953e07eeefe260ab4684630c348894f87129c77d Mon Sep 17 00:00:00 2001 From: benarc Date: Sat, 16 Apr 2022 10:37:36 +0100 Subject: [PATCH 1/3] Added csv export to lnurlw --- .../withdraw/templates/withdraw/csv.html | 33 ++ .../withdraw/templates/withdraw/index.html | 351 ++++++------------ lnbits/extensions/withdraw/views.py | 34 ++ 3 files changed, 187 insertions(+), 231 deletions(-) create mode 100644 lnbits/extensions/withdraw/templates/withdraw/csv.html diff --git a/lnbits/extensions/withdraw/templates/withdraw/csv.html b/lnbits/extensions/withdraw/templates/withdraw/csv.html new file mode 100644 index 000000000..e0323bb27 --- /dev/null +++ b/lnbits/extensions/withdraw/templates/withdraw/csv.html @@ -0,0 +1,33 @@ +{% extends "print.html" %} {% block page %} + +
+
+ {% for page in link %} + + + {% for threes in page %} + + {% for one in threes %} + + {% endfor %} + + {% endfor %} +
{{ theurl }}/?lightning={{one}},
+
+ {% endfor %} +
+
+{% endblock %} {% block scripts %} + +{% endblock %} \ No newline at end of file diff --git a/lnbits/extensions/withdraw/templates/withdraw/index.html b/lnbits/extensions/withdraw/templates/withdraw/index.html index 4cffbc383..de145855b 100644 --- a/lnbits/extensions/withdraw/templates/withdraw/index.html +++ b/lnbits/extensions/withdraw/templates/withdraw/index.html @@ -1,40 +1,28 @@ -{% extends "base.html" %} {% from "macros.jinja" import window_vars with context -%} {% block scripts %} {{ window_vars(user) }} +{% extends "base.html" %} {% from "macros.jinja" import window_vars with context %} {% block scripts %} {{ window_vars(user) }} {% endblock %} {% block page %}
-
- - - Quick vouchers - Advanced withdraw link(s) - - +
+ + + Quick vouchers + Advanced withdraw link(s) + + - - -
-
-
Withdraw links
-
-
- Export to CSV -
-
- - {% raw %} -