## -*- coding: utf-8 -*- <%! from pylons.i18n.translation import set_lang, get_lang %> Baruwa :: ${_("Login") if url.current() == url('accounts-login') else _('Reset my password')} ${h.javascript_link(h.media_url() + 'js/jquery.min.js', h.media_url() + 'js/jquery.mustache.min.js', url('jsi18n'), h.media_url() + 'js/baruwa/common.js', h.media_url() + 'js/baruwa/login.js')}

${_('Login')}

% if c.login_counter > 0:

${_("The username or password you entered is incorrect.")}

% endif <% messages = h.flash.pop_messages() if not messages and hasattr(c, 'form') and 'csrf_token' in c.form.errors: message = c.form.errors.pop('csrf_token')[0] msg = h.Msg('error', message) messages.append(msg) %> % if messages:

${messages[0]}

% endif ${h.form(url('/login', came_from=c.came_from, __logins=c.login_counter), id='loginform', method='post')} ${h.end_form()}

${_('Forgotten password ?')}

% if c.form.email.errors:

${u', '.join([unicode(ferr) for ferr in c.form.email.errors])}

% endif

${_("Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions on setting a new one.")}


${h.form(url('accounts-pwreset', came_from=c.came_from), id='resetform', method='post')} ${h.HTML.div(c.form.csrf_token, style="display: none;")} ${c.form.email.label} ${h.highlight_errors(c.form.email)} ${_('Cancel')} ${h.end_form()}