git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@400
6d9bc8c9-1ec2-4278-b937-
99fde70a366f
# 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())
<xi:include href="master.xhtml"/>
<head>
<title>${title}</title>
+ <script>
+ $(function() {
+ $('#code').focus();
+ });
+ </script>
</head>
<body>
<h1>${title}</h1>
more information.</p>
<div class="errors" py:if="error">${error}</div>
<form action="." method="POST">
- <table>
- <tr><th>Invitation Code:</th><td><input type="text" name="code" size="30" value="${code}"/></td></tr>
- <tr><th/><td><input type="submit" value="Continue"/> <a style="margin-left: 12;" href="../">Go back</a></td></tr>
+ <table class="metadata_table">
+ <tr><th>Invitation Code:</th><td><input type="text" id="code" name="code" size="30" value="${code}"/></td></tr>
</table>
+<p><input type="submit" value="Continue"/> <a style="margin-left: 12px;" href="../">or go back</a></p>
</form>
<div class="gap"/>
</body>