From 499379ff2d7cfdd071ef369d41829825eb214408 Mon Sep 17 00:00:00 2001 From: Changaco Date: Wed, 21 Feb 2018 11:19:18 +0100 Subject: [PATCH 1/2] fix attribute name on invoice creation form --- www/%username/invoices/new.spt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/%username/invoices/new.spt b/www/%username/invoices/new.spt index 0774066ebb..d9ce7c255c 100644 --- a/www/%username/invoices/new.spt +++ b/www/%username/invoices/new.spt @@ -92,7 +92,7 @@ title = _("Invoice {someone}", someone=addressee.username)
Date: Wed, 21 Feb 2018 11:19:58 +0100 Subject: [PATCH 2/2] add currency selector to invoice creation form --- www/%username/invoices/new.spt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/%username/invoices/new.spt b/www/%username/invoices/new.spt index d9ce7c255c..ad9d6b22b0 100644 --- a/www/%username/invoices/new.spt +++ b/www/%username/invoices/new.spt @@ -86,7 +86,10 @@ if request.method == 'POST': title = _("Invoice {someone}", someone=addressee.username) [---] text/html +% from "templates/currencies.html" import currency_buttons with context + % extends "templates/base.html" + % block content @@ -113,11 +116,12 @@ title = _("Invoice {someone}", someone=addressee.username)

{{ _("(Liberapay only supports one kind of invoice for now.)") }}

{{ _("Amount") }}

-
+
-
{{ locale.currency_symbols.get(currency, currency) }}
+    + {{ currency_buttons('currency', currency) }}

{{ _("Description") }}