Bit of login formatting

This commit is contained in:
John Crisp 2025-05-20 18:51:32 +02:00
parent 6cc847b6b1
commit 176171c2c3
3 changed files with 31 additions and 19 deletions

View File

@ -12,16 +12,23 @@
% } % }
% if ( stash 'error' ) { % if ( stash 'error' ) {
<br><div class=""> <br>
%= $c->render_to_string(inline => stash 'error') <div class="container text-center">
<div class="row">
<div class="col-sm">
<div class="text-danger">
<%= $c->render_to_string(inline => stash 'error') %>
</div>
</div>
</div> </div>
% } % }
% my $btn = l('use_SIGNIN'); % my $btn = l('use_SIGNIN');
% if ( $trt eq 'RESET' ) { % if ( $trt eq 'RESET' ) {
<br><div class=""><h2> <br>
%= $c->render_to_string(inline => l 'use_DESC_RESET') <div>
</h2></div> <h2><%= $c->render_to_string(inline => l 'use_DESC_RESET') %></h2>
</div>
% $btn = l('use_RESET'); % $btn = l('use_RESET');
% } % }
@ -36,7 +43,9 @@
</div> </div>
<br> <br>
<a href="/smanager" class="link-dark text-center link-offset-2 link-opacity-100 link-opacity-50-hover"> <a href="/smanager" class="link-dark text-center link-offset-2 link-opacity-100 link-opacity-50-hover">
<h1 class="mb-0"><b>Koozali</b></h1><br><h3>Server Manager</h3> <h1 class="mb-0"><b>Koozali</b></h1>
<br>
<h3>Server Manager</h3>
</a> </a>
<br> <br>
<h1 class="text-center"> <h1 class="text-center">
@ -63,8 +72,8 @@
<div class="input-group-text"><span class="bi bi-lock-fill"></span></div> <div class="input-group-text"><span class="bi bi-lock-fill"></span></div>
</div> </div>
%= hidden_field 'From' => $c->tx->req->url <%= hidden_field 'From' => $c->tx->req->url %>
%= hidden_field 'Trt' => stash 'trt' <%= hidden_field 'Trt' => stash 'trt' %>
<!--begin::Row--> <!--begin::Row-->
<div class="row"> <div class="row">
@ -84,7 +93,10 @@
</div> </div>
<!--end::Row--> <!--end::Row-->
</form> </form>
<p class="mb-1"><a href="login2">I forgot my password</a></p> <br>
<div class="mb-1 text-center">
<a href="login2">I forgot my password</a>
</div>
</div> </div>
<!-- /.login-card-body --> <!-- /.login-card-body -->
</div> </div>

View File

@ -8,14 +8,14 @@
<div class="card-body"> <div class="card-body">
% if (config->{debug} == 1) { % if (config->{debug} == 1) {
<p> <div>
<strong>Debug Info:</strong> <strong>Debug Info:</strong>
<pre><%= dumper $c->current_route %></pre> <pre><%= dumper $c->current_route %></pre>
</p> </div>
% } % }
% if (stash 'error') { % if (stash 'error') {
<div class=""> <div>
<strong>Error:</strong><br> <strong>Error:</strong><br>
<%= $c->render_to_string(inline => stash 'error') %> <%= $c->render_to_string(inline => stash 'error') %>
</div> </div>
@ -23,7 +23,7 @@
<h1><%= $title %></h1> <h1><%= $title %></h1>
<div class=""> <div>
<%= $c->render_to_string(inline => stash 'modul') %> <%= $c->render_to_string(inline => stash 'modul') %>
</div> </div>
</div> </div>