From d4652fe9c23fba602e38945a782dcee5b347a394 Mon Sep 17 00:00:00 2001
From: gfawcett
Date: Mon, 27 Apr 2009 01:58:05 +0000
Subject: [PATCH] cleaned up invitation page; fixed bug in bad-invitation
handler.
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@400 6d9bc8c9-1ec2-4278-b937-99fde70a366f
---
conifer/syrup/views/courses.py | 2 +-
conifer/templates/course_invitation.xhtml | 11 ++++++++---
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/conifer/syrup/views/courses.py b/conifer/syrup/views/courses.py
index 062ca2a..3f23728 100644
--- a/conifer/syrup/views/courses.py
+++ b/conifer/syrup/views/courses.py
@@ -217,7 +217,7 @@ def course_invitation(request):
# think. Should we temporarily disable accounts after
# multiple failures?
log('WARN', 'Invitation failure, user %r gave code %r' % \
- (datetime.now(), request.user.username, code))
+ (request.user.username, code))
error = _('The code you provided is not valid.')
return g.render('course_invitation.xhtml', **locals())
diff --git a/conifer/templates/course_invitation.xhtml b/conifer/templates/course_invitation.xhtml
index 5b3ea41..20879fb 100644
--- a/conifer/templates/course_invitation.xhtml
+++ b/conifer/templates/course_invitation.xhtml
@@ -7,6 +7,11 @@ title = _('Join a course using an Invitation Code')
${title}
+
${title}
@@ -17,10 +22,10 @@ title = _('Join a course using an Invitation Code')
more information.
${error}