From commits-return-19924-archive-asf-public=cust-asf.ponee.io@airavata.apache.org Wed Oct 31 18:48:17 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D716B1807A1 for ; Wed, 31 Oct 2018 18:48:16 +0100 (CET) Received: (qmail 22876 invoked by uid 500); 31 Oct 2018 17:48:16 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 22788 invoked by uid 99); 31 Oct 2018 17:48:15 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2018 17:48:15 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id A2152852D2; Wed, 31 Oct 2018 17:48:14 +0000 (UTC) Date: Wed, 31 Oct 2018 17:48:21 +0000 To: "commits@airavata.apache.org" Subject: [airavata-django-portal] 07/09: AIRAVATA-2888 Success/error messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: machristie@apache.org In-Reply-To: <154100809400.24693.8914575068919484712@gitbox.apache.org> References: <154100809400.24693.8914575068919484712@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: airavata-django-portal X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: 810533914396eab695720fbf7c6520743cc47092 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20181031174814.A2152852D2@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. machristie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git commit 810533914396eab695720fbf7c6520743cc47092 Author: Marcus Christie AuthorDate: Mon Oct 29 09:54:12 2018 -0400 AIRAVATA-2888 Success/error messages --- .../django_airavata_auth/create_account.html | 7 +++ .../auth/templates/django_airavata_auth/login.html | 9 +++- .../django_airavata_auth/verify_email.html | 7 +++ django_airavata/apps/auth/views.py | 56 ++++++++++++++++++---- 4 files changed, 68 insertions(+), 11 deletions(-) diff --git a/django_airavata/apps/auth/templates/django_airavata_auth/create_account.html b/django_airavata/apps/auth/templates/django_airavata_auth/create_account.html index 29ff91b..5a943a9 100644 --- a/django_airavata/apps/auth/templates/django_airavata_auth/create_account.html +++ b/django_airavata/apps/auth/templates/django_airavata_auth/create_account.html @@ -31,6 +31,13 @@ {% else %}
Create a {{ options.password.name }} account
{% endif %} + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %}
{% for error in form.non_field_errors %} {% endif %} - + {% if options.password %}
Log in with {{ options.password.name|default:"a username and password" }}
+ {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} {% csrf_token %}
diff --git a/django_airavata/apps/auth/templates/django_airavata_auth/verify_email.html b/django_airavata/apps/auth/templates/django_airavata_auth/verify_email.html index d737105..4a1130e 100644 --- a/django_airavata/apps/auth/templates/django_airavata_auth/verify_email.html +++ b/django_airavata/apps/auth/templates/django_airavata_auth/verify_email.html @@ -8,6 +8,13 @@
Resend Email Verification Link
+ {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} {% for error in form.non_field_errors %}