88 lines
1.8 KiB
Plaintext
88 lines
1.8 KiB
Plaintext
![]() |
% layout 'default', title => "Sme server 2 - login";
|
||
|
|
||
|
% content_for 'module' => begin
|
||
|
|
||
|
<div id="module" class="content-login hold-transition login page login-box" >
|
||
|
|
||
|
<!---
|
||
|
<div class="login-logo">
|
||
|
<a href="../../index2.html"><b>Admin</b>LTE</a>
|
||
|
</div>
|
||
|
-->
|
||
|
|
||
|
%if ($config->{debug} == 1) {
|
||
|
<p>
|
||
|
%= dumper $c->current_route
|
||
|
%if ( stash 'trt' ) {
|
||
|
%= dumper stash 'trt'
|
||
|
%}
|
||
|
</p>
|
||
|
%}
|
||
|
|
||
|
% if ( stash 'error' ) {
|
||
|
<br><div class=sme-error>
|
||
|
%= $c->render_to_string(inline => stash 'error')
|
||
|
</div>
|
||
|
%}
|
||
|
|
||
|
<div class="card">
|
||
|
<div class="card-body login-card-body">
|
||
|
<p class="login-box-msg"><%=l 'use_TITLE' %></p>
|
||
|
|
||
|
% my $btn = l('use_SIGNIN');
|
||
|
|
||
|
<!------
|
||
|
<h1>
|
||
|
%=l 'use_TITLE'
|
||
|
</h1>
|
||
|
---->
|
||
|
|
||
|
%= form_for '/login' => (method => 'POST') => begin
|
||
|
|
||
|
<!---
|
||
|
<p><span class=label>
|
||
|
%=l 'USER_NAME'
|
||
|
</span><span class=input>
|
||
|
%= text_field 'Username'
|
||
|
</span></p>
|
||
|
|
||
|
<p><span class=label>
|
||
|
%=l 'PASSWORD'
|
||
|
</span><span class=input>
|
||
|
%= password_field 'Password'
|
||
|
</span></p>
|
||
|
--->
|
||
|
|
||
|
<div class="input-group mb-3">
|
||
|
<input type="text" name='Username' class="form-control" placeholder="<%=l 'USER_NAME'%>">
|
||
|
<div class="input-group-append">
|
||
|
<div class="input-group-text">
|
||
|
<span class="fas fa-user"></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="input-group mb-3">
|
||
|
<input type="password" name='Password' id='id_password' class="form-control" placeholder="<%=l 'PASSWORD'%>">
|
||
|
<div class="input-group-append">
|
||
|
<div class="input-group-text">
|
||
|
<i class="far fa-eye" id="togglePassword"></i>
|
||
|
<!---<span class="fas fa-lock"></span>-->
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
%= hidden_field 'From' => $c->tx->req->url
|
||
|
%= hidden_field 'Trt' => stash 'trt'
|
||
|
|
||
|
<br>
|
||
|
<div class='center'>
|
||
|
%= submit_button "$btn", class => 'action'
|
||
|
</div>
|
||
|
% end
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
%end
|