69 lines
1.4 KiB
Plaintext
69 lines
1.4 KiB
Plaintext
% layout 'AdminLTE' , title => "Sme server 2 - login";
|
|
|
|
% content_for 'module' => begin
|
|
|
|
<div id="" class="">
|
|
|
|
%if ( config 'debug' ) {
|
|
<p>
|
|
%= dumper $c->current_route
|
|
%if ( stash 'trt' ) {
|
|
%= dumper stash 'trt'
|
|
%}
|
|
</p>
|
|
%}
|
|
|
|
% if ( stash 'error' ) {
|
|
<br><div class="">
|
|
%= $c->render_to_string(inline => stash 'error')
|
|
</div>
|
|
%}
|
|
|
|
% my $btn = l('use_SIGNIN');
|
|
% if ( $trt eq 'RESET' ) {
|
|
<br><div class=""><h2>
|
|
%= $c->render_to_string(inline => l 'use_DESC_RESET')
|
|
</h2></div>
|
|
% $btn = l('use_RESET');
|
|
%}
|
|
|
|
<h1>
|
|
%=l 'use_TITLE'
|
|
</h1>
|
|
|
|
%= form_for '/login' => (method => 'POST') => begin
|
|
|
|
<p><span class="">
|
|
%=l 'USER_NAME'
|
|
</span><span class="">
|
|
%= text_field 'Username'
|
|
</span></p>
|
|
|
|
% if ( $trt ne 'RESET' ) {
|
|
<p><span class="">
|
|
%=l 'PASSWORD'
|
|
</span><span class="">
|
|
%= password_field 'Password', id => "", autocomplete => 'current-password', class=>""
|
|
% if (config 'hasJquery') {
|
|
%#<a href='#' id="" class=""> <img src="images/visible.png" height="16" alt="Visible"></a>
|
|
% }
|
|
</span></p>
|
|
%}
|
|
|
|
%= hidden_field 'From' => $c->tx->req->url
|
|
%= hidden_field 'Trt' => $trt
|
|
|
|
<br>
|
|
<div class="">
|
|
%= submit_button "$btn", class => ""
|
|
</div>
|
|
%if ( config 'pwdreset' ) {
|
|
<div class=""><a href='login2'>
|
|
%=l 'use_FORGOT'
|
|
</a></div>
|
|
%}
|
|
|
|
% end
|
|
|
|
</div>
|
|
%end |