2020-06-30 08:19:01 +00:00
|
|
|
@extends("user.layout.base")
|
2020-06-11 12:52:15 +00:00
|
|
|
|
|
|
|
@section("title")
|
|
|
|
Login
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-11-26 09:19:12 +00:00
|
|
|
<main class="bg-sde-blue h-100">
|
2020-11-23 11:53:19 +00:00
|
|
|
<!--Make the app open in fullscreen-->
|
2020-10-16 10:36:56 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="/../../../css/addtohomescreen.css">
|
|
|
|
<script src="/../../../js/addtohomescreen.js"></script>
|
|
|
|
|
2020-06-11 12:52:15 +00:00
|
|
|
<div class="brand">
|
|
|
|
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
|
|
|
|
</div>
|
2020-06-30 08:42:10 +00:00
|
|
|
<form action="{{ route("users.login") }}" method="post">
|
|
|
|
@csrf
|
2020-06-15 06:56:21 +00:00
|
|
|
<input class="appinput" type="email" name="email" placeholder="Email" required>
|
2020-08-03 08:36:57 +00:00
|
|
|
<div class="input-group text-left">
|
|
|
|
<input type="password" class="appinput form-control" name="password" id="password" placeholder="Password" required>
|
2020-11-26 09:19:12 +00:00
|
|
|
<span class="fa fa-fw fa-eye field-icon toggle-password bg-sde-blue text-white" id="fa-password" onclick="show('password', 'fa-password')"></span>
|
2020-08-03 08:36:57 +00:00
|
|
|
</div>
|
2020-06-11 12:52:15 +00:00
|
|
|
<label class="toggle">
|
|
|
|
<input class="toggle__input" type="checkbox" name="rememberpassword">
|
|
|
|
<span class="toggle__label">
|
2020-08-25 13:08:54 +00:00
|
|
|
<span class="toggle__text text-white">Remember me</span>
|
2020-06-11 12:52:15 +00:00
|
|
|
</span>
|
|
|
|
</label>
|
2020-07-28 08:31:44 +00:00
|
|
|
{!! session()->get('success#passwordchange') !!}
|
2020-08-07 06:35:23 +00:00
|
|
|
{!! session()->get('error#wrongcredentials') !!}
|
|
|
|
{!! session()->get('success#loggedout') !!}
|
2020-06-11 12:52:15 +00:00
|
|
|
<input class="btn btn-dark" type="submit" value="Sign in">
|
2021-04-26 11:02:17 +00:00
|
|
|
@if (\App\AllowAction::query()->where('action', '=', 'Registering')->first()->allow == true)
|
|
|
|
<button type="button" class="btn btn-dark lh-2" onclick="location.href = '{{ route("users.signup") }}'">Register</button>
|
|
|
|
@endif
|
2020-06-11 12:52:15 +00:00
|
|
|
</form>
|
2020-06-30 08:19:01 +00:00
|
|
|
<a class="text-white text-center" href="{{ route('users.show-forgot') }}">Forgot password?</a>
|
2020-06-11 12:52:15 +00:00
|
|
|
</main>
|
|
|
|
@endsection
|
2020-08-03 08:36:57 +00:00
|
|
|
|
|
|
|
@section("scripts")
|
|
|
|
<script>
|
|
|
|
function show($passID, $faID) {
|
|
|
|
var inputPass = document.getElementById($passID);
|
|
|
|
var faEye = document.getElementById($faID);
|
|
|
|
|
|
|
|
if (inputPass.type === "password") {
|
|
|
|
inputPass.type = "text";
|
|
|
|
faEye.style.color = "#999";
|
|
|
|
} else {
|
|
|
|
inputPass.type = "password";
|
|
|
|
faEye.style.color = "#fff";
|
|
|
|
}
|
|
|
|
}
|
2020-10-16 06:30:05 +00:00
|
|
|
|
|
|
|
|
2020-10-16 10:36:56 +00:00
|
|
|
addToHomescreen();
|
2020-10-16 06:30:05 +00:00
|
|
|
|
2020-08-03 08:36:57 +00:00
|
|
|
</script>
|
|
|
|
@endsection
|