## -*- coding: utf-8 -*- <%! from pylons.i18n.translation import set_lang, get_lang from baruwa import __version__ as baruwaversion, __copyright__ as baruwacopyr %> ${config.get('baruwa.custom.name', 'Baruwa')} :: ${_("Login") if url.current() == url('accounts-login') else _('Reset my password')} % if 'lang' in session and session['lang'] and session['lang'] in ['ar', 'he', 'ur', 'fa']: % else: % endif ${h.javascript_link(h.media_url() + 'js/vendor/jquery.min.js', h.media_url() + 'js/vendor/jquery.mustache.min.js', url('jsi18n'), h.media_url() + 'js/baruwa/common.min.js')}
% 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:
% for message in messages: ${message}
% endfor
% endif

${config.get('baruwa.custom.name', 'Baruwa')} Powered by Baruwa [${baruwaversion}] ${baruwacopyr}

% if c.form.email.errors:

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

% endif ${h.form(url('accounts-pwreset', came_from=c.came_from), id='resetform', method='post')}
${h.HTML.div(c.form.csrf_token, style="display: none;")}

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

${h.end_form()}