2020-09-06 09:46:27 +10:00
|
|
|
@extends('architect::layouts.auth')
|
|
|
|
|
|
|
|
@section('htmlheader_title')
|
|
|
|
Log in
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<!-- /.login-logo -->
|
|
|
|
<div class="app-container app-theme-white body-tabs-shadow">
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="h-100 bg-animation">
|
|
|
|
<div class="d-flex h-100 justify-content-center align-items-center">
|
|
|
|
<div class="mx-auto app-login-box col-md-8">
|
2025-01-15 18:32:41 +11:00
|
|
|
<x-file-note file="login-note.html"/>
|
2020-09-19 00:35:29 +10:00
|
|
|
|
2020-09-06 09:46:27 +10:00
|
|
|
<div class="modal-dialog w-100 mx-auto">
|
|
|
|
<div class="modal-content">
|
2020-09-15 22:40:32 +10:00
|
|
|
<form class="needs-validation" novalidate method="post">
|
2020-09-13 23:41:26 +10:00
|
|
|
{{ csrf_field() }}
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="h5 modal-title text-center">
|
|
|
|
<h4 class="mt-2">
|
2023-03-25 23:33:27 +11:00
|
|
|
<div class="app-logo mx-auto mb-3"><img class="w-75" src="{{ url('images/logo-h-lg.png') }}"></div>
|
2021-12-10 17:31:03 +11:00
|
|
|
<small>@lang('Sign in to <strong>:server</strong>',['server'=>config('ldap.connections.default.name')])</small>
|
2020-09-13 23:41:26 +10:00
|
|
|
</h4>
|
|
|
|
</div>
|
2020-09-06 09:46:27 +10:00
|
|
|
|
|
|
|
<div class="form-row">
|
2020-09-15 22:40:32 +10:00
|
|
|
<div class="col-md-12 mt-3">
|
2024-01-08 14:54:00 +11:00
|
|
|
<label class="mb-1">{{ login_attr_description() }}</label>
|
|
|
|
<input name="{{ login_attr_name() }}" id="user" placeholder="" type="@if(in_array(login_attr_name(),['mail','email'])) email @else text @endif" class="form-control" required="">
|
2020-09-15 22:40:32 +10:00
|
|
|
<div class="invalid-feedback">
|
2024-01-08 14:54:00 +11:00
|
|
|
@lang('Please enter your '.strtolower(login_attr_description()))
|
2020-09-06 09:46:27 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-15 22:40:32 +10:00
|
|
|
|
|
|
|
<div class="col-md-12 mt-2">
|
2020-09-20 23:29:22 +10:00
|
|
|
<label class="mb-1">@lang('Password')</label>
|
2020-09-15 22:40:32 +10:00
|
|
|
<input name="password" id="password" placeholder="" type="password" class="form-control" required>
|
|
|
|
<div class="invalid-feedback">
|
2020-09-20 23:29:22 +10:00
|
|
|
@lang('Please enter your password')
|
2020-09-06 09:46:27 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-15 22:40:32 +10:00
|
|
|
|
2020-09-13 23:41:26 +10:00
|
|
|
<div class="modal-footer">
|
|
|
|
@if (count($errors) > 0)
|
|
|
|
<div class="alert alert-danger w-100">
|
|
|
|
<strong>Whoops!</strong> Something went wrong?<br><br>
|
|
|
|
<ul>
|
|
|
|
@foreach ($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
@endif
|
2023-03-25 23:33:27 +11:00
|
|
|
<div class="float-end">
|
2025-02-02 09:23:16 +11:00
|
|
|
<button class="btn btn-lg btn-primary">Login</button>
|
2020-09-13 23:41:26 +10:00
|
|
|
</div>
|
2020-09-06 09:46:27 +10:00
|
|
|
</div>
|
2020-09-13 23:41:26 +10:00
|
|
|
</form>
|
2020-09-06 09:46:27 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
2020-09-15 22:40:32 +10:00
|
|
|
|
|
|
|
@section('page-scripts')
|
|
|
|
<style>
|
|
|
|
label {
|
|
|
|
text-transform: uppercase;
|
|
|
|
letter-spacing: 0.05em;
|
|
|
|
font-size: 85%;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.table tr:last-child {
|
|
|
|
border-bottom: 1px solid #e9ecef;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2023-04-12 08:17:57 +10:00
|
|
|
<script type="text/javascript">
|
2020-09-15 22:40:32 +10:00
|
|
|
// Example starter JavaScript for disabling form submissions if there are invalid fields
|
|
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
window.addEventListener('load',function () {
|
|
|
|
// Fetch all the forms we want to apply custom Bootstrap validation styles to
|
|
|
|
var forms = document.getElementsByClassName('needs-validation');
|
|
|
|
// Loop over them and prevent submission
|
|
|
|
var validation = Array.prototype.filter.call(forms, function (form) {
|
|
|
|
form.addEventListener('submit', function (event) {
|
|
|
|
if (form.checkValidity() === false) {
|
|
|
|
event.preventDefault();
|
|
|
|
event.stopPropagation();
|
|
|
|
}
|
|
|
|
form.classList.add('was-validated');
|
|
|
|
}, false);
|
|
|
|
});
|
|
|
|
}, false);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
@append
|