From 9359f6281a46b86f421e4ec02ce1f90e4ac2dbd7 Mon Sep 17 00:00:00 2001 From: MS Date: Thu, 15 Oct 2020 23:27:10 +0200 Subject: payto wire transfer moving the form to a different page --- talerbank/app/views.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'talerbank/app/views.py') diff --git a/talerbank/app/views.py b/talerbank/app/views.py index 1855609..ecb0ec7 100644 --- a/talerbank/app/views.py +++ b/talerbank/app/views.py @@ -297,6 +297,14 @@ class InputDatalist(forms.TextInput): class PaytoTransferForm(forms.Form): address = forms.CharField() + +@login_required +def payto_form(request): + context = dict( + currency=request.user.bankaccount.balance.amount.currency, + ) + return render(request, "payto_wiretransfer.html", context) + ## # This method serves the profile page, which is the main # page where the user interacts with the bank, and also the -- cgit v1.2.3