fix: alignment on login page

main
Barış Soner Uşaklı 3 years ago
parent bda443bb8e
commit 498fa8ee3f

@ -5,78 +5,80 @@
{{{end}}} {{{end}}}
</div> </div>
<div class="row login"> <div class="row login">
<div class="row {{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}"> <div class="{{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
{{{ if allowLocalLogin }}} <div class="row">
<div class="{{{ if alternate_logins }}}col-md-6{{{ else }}}col-md-12{{{ end }}}"> {{{ if allowLocalLogin }}}
<div class="login-block"> <div class="{{{ if alternate_logins }}}col-md-6{{{ else }}}col-md-12{{{ end }}}">
<div class="alert alert-danger" id="login-error-notify" <!-- IF error -->style="display:block"<!-- ELSE -->style="display: none;"<!-- ENDIF error -->> <div class="login-block">
<button type="button" class="close" data-dismiss="alert">&times;</button> <div class="alert alert-danger" id="login-error-notify" <!-- IF error -->style="display:block"<!-- ELSE -->style="display: none;"<!-- ENDIF error -->>
<strong>[[login:failed_login_attempt]]</strong> <button type="button" class="close" data-dismiss="alert">&times;</button>
<p>{error}</p> <strong>[[login:failed_login_attempt]]</strong>
</div> <p>{error}</p>
</div>
<form class="form-horizontal" role="form" method="post" id="login-form"> <form class="form-horizontal" role="form" method="post" id="login-form">
<div class="form-group"> <div class="form-group">
<label for="username" class="col-lg-2 control-label">{allowLoginWith}</label> <label for="username" class="col-lg-2 control-label">{allowLoginWith}</label>
<div class="col-lg-10"> <div class="col-lg-10">
<input class="form-control" type="text" placeholder="{allowLoginWith}" name="username" id="username" autocorrect="off" autocapitalize="off" value="{username}"/> <input class="form-control" type="text" placeholder="{allowLoginWith}" name="username" id="username" autocorrect="off" autocapitalize="off" value="{username}"/>
</div>
</div> </div>
</div> <div class="form-group">
<div class="form-group"> <label for="password" class="col-lg-2 control-label">[[user:password]]</label>
<label for="password" class="col-lg-2 control-label">[[user:password]]</label> <div class="col-lg-10">
<div class="col-lg-10"> <input class="form-control" type="password" placeholder="[[user:password]]" name="password" id="password" <!-- IF username -->autocomplete="off"<!-- ENDIF username -->/>
<input class="form-control" type="password" placeholder="[[user:password]]" name="password" id="password" <!-- IF username -->autocomplete="off"<!-- ENDIF username -->/> <p id="caps-lock-warning" class="text-danger hidden">
<p id="caps-lock-warning" class="text-danger hidden"> <i class="fa fa-exclamation-triangle"></i> [[login:caps-lock-enabled]]
<i class="fa fa-exclamation-triangle"></i> [[login:caps-lock-enabled]] </p>
</p> </div>
</div> </div>
</div> <div class="form-group">
<div class="form-group"> <div class="col-lg-offset-2 col-lg-10">
<div class="col-lg-offset-2 col-lg-10"> <div class="checkbox">
<div class="checkbox"> <label>
<label> <input type="checkbox" name="remember" id="remember" checked /> [[login:remember_me]]
<input type="checkbox" name="remember" id="remember" checked /> [[login:remember_me]] </label>
</label> </div>
</div> </div>
</div> </div>
</div> {{{each loginFormEntry}}}
{{{each loginFormEntry}}} <div class="form-group loginFormEntry">
<div class="form-group loginFormEntry"> <label for="login-{loginFormEntry.styleName}" class="col-lg-4 control-label">{loginFormEntry.label}</label>
<label for="login-{loginFormEntry.styleName}" class="col-lg-4 control-label">{loginFormEntry.label}</label> <div id="login-{loginFormEntry.styleName}" class="col-lg-8">{{loginFormEntry.html}}</div>
<div id="login-{loginFormEntry.styleName}" class="col-lg-8">{{loginFormEntry.html}}</div>
</div>
{{{end}}}
<input type="hidden" name="_csrf" value="{config.csrf_token}" />
<input type="hidden" name="noscript" id="noscript" value="true" />
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary btn-lg btn-block" id="login" type="submit">[[global:login]]</button>
<!-- IF allowRegistration -->
<span>[[login:dont_have_account]] <a href="{config.relative_path}/register">[[register:register]]</a></span>
<!-- ENDIF allowRegistration -->
<!-- IF allowPasswordReset -->
&nbsp; <a id="reset-link" href="{config.relative_path}/reset">[[login:forgot_password]]</a>
<!-- ENDIF allowPasswordReset -->
</div> </div>
</div> {{{end}}}
</form> <input type="hidden" name="_csrf" value="{config.csrf_token}" />
<input type="hidden" name="noscript" id="noscript" value="true" />
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary btn-lg btn-block" id="login" type="submit">[[global:login]]</button>
<!-- IF allowRegistration -->
<span>[[login:dont_have_account]] <a href="{config.relative_path}/register">[[register:register]]</a></span>
<!-- ENDIF allowRegistration -->
<!-- IF allowPasswordReset -->
&nbsp; <a id="reset-link" href="{config.relative_path}/reset">[[login:forgot_password]]</a>
<!-- ENDIF allowPasswordReset -->
</div>
</div>
</form>
</div>
</div> </div>
</div> {{{ end }}}
{{{ end }}}
{{{ if alternate_logins }}} {{{ if alternate_logins }}}
<div class="{{{ if allowLocalLogin }}}col-md-6<{{{ else }}}col-md-12{{{ end }}}"> <div class="{{{ if allowLocalLogin }}}col-md-6<{{{ else }}}col-md-12{{{ end }}}">
<div class="alt-login-block"> <div class="alt-login-block">
<h4>[[login:alternative_logins]]</h4> <h4>[[login:alternative_logins]]</h4>
<ul class="alt-logins"> <ul class="alt-logins">
{{{each authentication}}} {{{each authentication}}}
<li class="{authentication.name}"><a rel="nofollow noopener noreferrer" target="_top" href="{config.relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></a></li> <li class="{authentication.name}"><a rel="nofollow noopener noreferrer" target="_top" href="{config.relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></a></li>
{{{end}}} {{{end}}}
</ul> </ul>
</div>
</div> </div>
{{{ end }}}
</div> </div>
{{{ end }}}
</div> </div>
<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}"> <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
{{{each widgets.sidebar}}} {{{each widgets.sidebar}}}

Loading…
Cancel
Save