% layout 'default', title => "Sme server 2 - login"; % content_for 'module' => begin
% if ( config 'debug' ) {

%= dumper $c->current_route % if ( stash 'trt' ) { %= dumper stash 'trt' % }

% } % if ( stash 'error' ) {
%= $c->render_to_string( inline => stash 'error' )
% } % my $btn = l('use_SIGNIN'); % if ( $trt eq 'RESET' ) {

%= $c->render_to_string( inline => l 'use_DESC_RESET' )

% $btn = l('use_RESET'); % }

%= l 'use_TITLE'

%= form_for '/login' => ( method => 'POST' ) => begin

%= l 'USER_NAME' %= text_field 'Username'

% if ( $trt ne 'RESET' ) {

%= l 'PASSWORD' %= password_field 'Password', id => 'id_password', autocomplete => 'current-password', class => 'sme-password'; % if (config 'hasJquery') { %# Visible % }

% } %= hidden_field 'From' => $c->tx->req->url %= hidden_field 'Trt' => $trt
%= submit_button "$btn", class => 'action'
% if ( config 'pwdreset' ) {
%= l 'use_FORGOT'
% } % end
% end