[Rt-commit] rt branch, 4.6-theme/noauth-login-page, created. rt-4.4.4-212-gd4893f893
Craig Kaiser
craig at bestpractical.com
Tue May 7 17:21:59 EDT 2019
The branch, 4.6-theme/noauth-login-page has been created
at d4893f893df655097d6b7469d47f2be8293d3f72 (commit)
- Log -----------------------------------------------------------------
commit d4893f893df655097d6b7469d47f2be8293d3f72
Author: Craig Kaiser <craig at bestpractical.com>
Date: Tue May 7 16:20:37 2019 -0400
Migrate login page to elevator theme
diff --git a/share/html/Elements/Login b/share/html/Elements/Login
index dbe631e13..9c9550a01 100644
--- a/share/html/Elements/Login
+++ b/share/html/Elements/Login
@@ -50,33 +50,39 @@
<div id="body" class="login-body">
-<& /Elements/ListActions,
+ <& /Elements/ListActions,
title => loc('Error'),
titlebox => { class => 'error', hideable => 0 },
actions => $actions
-&>
+ &>
% $m->callback( %ARGS, CallbackName => 'BeforeForm' );
-
-<div id="login-box">
-<&| /Widgets/TitleBox, title => loc('Login'), titleright => $RT::VERSION, hideable => 0 &>
-
-<& LoginRedirectWarning, %ARGS &>
+ <div id="login-box">
+ <&| /Widgets/TitleBox, title => loc('Login'), titleright => $RT::VERSION, hideable => 0 &>
+ <& LoginRedirectWarning, %ARGS &>
% unless (RT->Config->Get('WebRemoteUserAuth') and !RT->Config->Get('WebFallbackToRTLogin')) {
-<form id="login" name="login" method="post" action="<% RT->Config->Get('WebPath') %>/NoAuth/Login.html">
+ <form id="login" name="login" method="post" action="<% RT->Config->Get('WebPath') %>/NoAuth/Login.html">
-<div class="input-row">
- <span class="label"><&|/l&>Username</&>:</span>
- <span class="input"><input type="text" name="user" value="<%$user%>" id="user" autocapitalize="off" /></span>
-</div>
+ <div class="form-row">
+ <span class="label col-md-3">
+ <&|/l&>Username</&>:
+ </span>
+ <span class="input col-md-9">
+ <input class="form-control" type="text" name="user" value="<%$user%>" id="user" autocapitalize="off" />
+ </span>
+ </div>
-<div class="input-row">
- <span class="label"><&|/l&>Password</&>:</span>
- <span class="input"><input type="password" name="pass" /></span>
-</div>
+ <div class="form-row">
+ <span class="label col-md-3">
+ <&|/l&>Password</&>:
+ </span>
+ <span class="input col-md-9">
+ <input class="form-control" type="password" name="pass" />
+ </span>
+ </div>
-<input type="hidden" name="next" value="<% $next %>" />
+ <input type="hidden" name="next" value="<% $next %>" />
<script type="text/javascript">
jQuery(function(){
@@ -87,21 +93,25 @@ jQuery(function(){
});
</script>
-<div class="button-row">
- <span class="input"><input type="submit" class="button" value="<&|/l&>Login</&>" /></span>
-</div>
+ <div class="form-row">
+ <div class="col-md-12 text-right">
+ <input type="submit" class="form-control btn btn-primary" value="<&|/l&>Login</&>" />
+ </div>
+ </div>
%# Give callbacks a chance to add more control elements
% $m->callback( %ARGS );
-</form>
+ </form>
% }
-</&>
-<& /Elements/LoginHelp &>
-</div><!-- #login-box -->
+ </&>
+
+ <& /Elements/LoginHelp &>
+ </div><!-- #login-box -->
% $m->callback( %ARGS, CallbackName => 'AfterForm' );
</div><!-- #login-body -->
-<& /Elements/Footer, Menu => 0 &>
+
+ <& /Elements/Footer, Menu => 0 &>
<%ARGS>
$next => ''
$user => ""
-----------------------------------------------------------------------
More information about the rt-commit
mailing list