gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-bank] branch master updated: render error message


From: gnunet
Subject: [taler-bank] branch master updated: render error message
Date: Wed, 02 Jun 2021 10:49:28 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 9d87bac  render error message
9d87bac is described below

commit 9d87bacdb483e2ac74da1de7b6afc2833c78f5f4
Author: MS <ms@taler.net>
AuthorDate: Wed Jun 2 10:49:25 2021 +0200

    render error message
---
 talerbank/app/templates/payto_wiretransfer.html | 15 +++++++++++++++
 talerbank/app/views.py                          |  3 +++
 2 files changed, 18 insertions(+)

diff --git a/talerbank/app/templates/payto_wiretransfer.html 
b/talerbank/app/templates/payto_wiretransfer.html
index ecca8d2..63b43cf 100644
--- a/talerbank/app/templates/payto_wiretransfer.html
+++ b/talerbank/app/templates/payto_wiretransfer.html
@@ -25,6 +25,21 @@
 </div>
 
   <section id="main">
+
+    {% if hint != "" %}
+    <article>
+      <div class="notification">
+      {% if not is_success %}
+        <p class="informational informational-fail">
+      {% else %}
+        <p class="informational informational-ok">
+      {% endif %}
+        {{ hint }}
+        </p>
+      </div>
+    </article>
+    {% endif %}
+
     <article>
     <div>
       <h2>{{ _("Wire transfer") }}</h2>
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 271c12d..c0f0303 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -296,8 +296,11 @@ class PaytoTransferForm(forms.Form):
 
 @login_required
 def payto_form(request):
+    is_success, hint = get_session_hint(request)
     context = dict(
         currency=request.user.bankaccount.balance.amount.currency,
+        is_success=is_success,
+        hint=hint,
     )
     return render(request, "payto_wiretransfer.html", context)
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]