mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
55 lines
1.8 KiB
Twig
55 lines
1.8 KiB
Twig
<div class="login-page">
|
|
<div class="login-box">
|
|
<div class="login-logo"><b>My</b>AAC</div>
|
|
{% if errors %}
|
|
<div class="alert alert-danger"><strong>Errors:</strong><br/>
|
|
{% for error in errors %}
|
|
<li>{{ error|raw }}</li>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% if logout %}
|
|
<div class="alert alert-success"><strong>Status:</strong><br/>
|
|
{{ logout }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<p class="login-box-msg">Please login.</p>
|
|
|
|
<form method="post" action="{{ constant('ADMIN_URL') }}">
|
|
{{ csrf() }}
|
|
<div class="input-group mb-3">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text"><i class="fa fa-lock"></i></span>
|
|
</div>
|
|
<input type="text" class="form-control" id="account-name-input" name="account_login" maxlength="{{ setting('core.account_login_by_email') ? '255' : '30' }}" placeholder="{{ account_login_by }}" required autofocus>
|
|
</div>
|
|
{{ hook('HOOK_ADMIN_LOGIN_AFTER_ACCOUNT') }}
|
|
<div class="input-group mb-3">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text"><i class="fa fa-key"></i></span>
|
|
</div>
|
|
<input type="password" class="form-control" placeholder="Password" name="password_login" required>
|
|
</div>
|
|
{{ hook('HOOK_ADMIN_LOGIN_AFTER_PASSWORD') }}
|
|
<div class="row">
|
|
<div class="col-8">
|
|
<div class="icheck-primary">
|
|
<input type="checkbox" id="remember_me" name="remember_me" value="true">
|
|
<label for="remember_me">Remember Me</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-4">
|
|
<input type="hidden" name="admin" value="1"/>
|
|
<button type="submit" class="btn btn-info btn-block">Sign In</button>
|
|
</div>
|
|
</div>
|
|
{{ hook('HOOK_ADMIN_LOGIN_AFTER_SIGN_IN') }}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|