3
0
Fork 0

Updated to Laravel 9, small fixes, and more

This commit is contained in:
SBDeveloper 2022-11-28 21:07:07 +01:00
parent 6fc52ee512
commit 9fd844ae1a
24 changed files with 5589 additions and 2557 deletions

View file

@ -1,33 +1,44 @@
@extends('layouts.default')
@extends('layouts.form')
@section('body')
<div class="page">
<div class="form">
<form method="post" action="{{ route('login') }}">
@csrf
@component('components.title')
@endcomponent
@if($errors->any())
<div class="login-page">
<div class="login-text">
@component('components.title')
@endcomponent
</div>
<div class="login-body">
<div>
<form method="post" action="{{ route('login') }}">
@csrf
@if($errors->any())
<div class="alert alert-danger" role="alert">
{{ __('Invalid Username or Password') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
<div class="alert alert-danger" role="alert">
{{ __('Invalid Username or Password') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<label class="col-xs-12">
Username:
<input id="uuid" type="text" class="form-input" name="uuid" value="{{ old('username') }}" placeholder="IOByte" required autocomplete="username" autofocus>
</label>
<label class="col-xs-12">
Password:
<input id="password" type="password" class="form-input" name="password" placeholder="••••••••••" required autocomplete="current-password">
</label>
<div class="col-xs-12">
<button class="btn btn-custom" style="width: 100%">{{ __('Login') }}</button>
<p style="margin-top: 1rem">No account yet, <a href="{{ route('register') }}">{{ __('Register one') }} </a>or,
<br>Did you <a href="{{ route('password.request') }}">{{ __('forget your password') }}</a>?</p>
</div>
</form>
</div>
@endif
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input id="uuid" type="text" class="form-control" name="uuid" value="{{ old('username') }}" placeholder="Username" required autocomplete="username" autofocus>
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="password" type="password" class="form-control" name="password" placeholder="Password" required autocomplete="current-password">
</div>
<button class="btn btn-custom" style="width: 100%">{{ __('Login') }}</button>
<p>No account yet, <a href="{{ route('register') }}">{{ __('Register one') }} </a>or,
<br>Did you <a href="{{ route('password.request') }}">{{ __('forget your password') }}</a>?</p>
</form>
<div class="login-footer">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo.png') }}" alt="IOByte"></a>. All rights reserved.</span>
</div>
</div>
</div>
@endsection

View file

@ -1,27 +1,38 @@
@extends('layouts.default')
@extends('layouts.form')
@section('body')
<div class="page">
<div class="form">
<form method="post" action="{{ route('password.email') }}">
@csrf
<div class="login-page">
<div class="login-text">
@component('components.title')
@endcomponent
@if(session('status'))
</div>
<div class="login-body">
<div>
<form method="post" action="{{ route('password.email') }}">
@csrf
@if(session('status'))
<div class="alert alert-success" role="alert">
{{ __('Email has been send.') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
<div class="alert alert-success" role="alert">
{{ __('Email has been send.') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<label class="col-xs-12">
Email:
<input id="email" type="email" class="form-input" name="email" value="{{ old('email') }}" placeholder="my.mail@example.com" required autocomplete="email" autofocus>
</label>
<div class="col-xs-12">
<button class="btn btn-custom" style="width: 100%">{{ __('Reset Password') }}</button>
</div>
</form>
</div>
@endif
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" placeholder="Email" required autocomplete="email" autofocus>
<div class="login-footer">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo.png') }}" alt="IOByte"></a>. All rights reserved.</span>
</div>
<button class="btn btn-custom" style="width: 100%">{{ __('Reset Password') }}</button>
</form>
</div>
</div>
</div>
@endsection

View file

@ -1,41 +1,52 @@
@extends('layouts.default')
@extends('layouts.form')
@section('body')
<div class="page">
<div class="form">
<form method="post" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<div class="login-page">
<div class="login-text">
@component('components.title')
@endcomponent
</div>
<div class="login-body">
<div>
<form method="post" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<div class="form-group @error('email') has-error @enderror">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="email" type="email" class="form-control" name="email" value="{{ $email ?? old('email') }}" placeholder="Email" required autocomplete="email" autofocus>
</div>
@error('email')
<span class="help-block" style="font-size: 12px">{{ $message }}</span>
@enderror
<label class="col-xs-12">
Email:
<input id="email" type="email" class="form-input" name="email" value="{{ $email ?? old('email') }}" placeholder="my.mail@example.com" required autocomplete="email" autofocus>
</label>
<label class="col-xs-12">
Password:
<input type="password" class="form-input" name="password" placeholder="••••••••••" required autocomplete="new-password">
</label>
<label class="col-xs-12">
Confirm Password:
<input type="password" class="form-input" name="password_confirmation" placeholder="••••••••••" required autocomplete="new-password">
</label>
<div class="col-xs-12">
<button class="btn btn-custom" style="width: 100%">{{ __('Reset Password') }}</button>
</div>
</form>
</div>
<div class="form-group @error('password') has-error @enderror">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" class="form-control" name="password" placeholder="Password" required autocomplete="new-password">
</div>
@error('password')
<span class="help-block" style="font-size: 12px">{{ $message }}</span>
@enderror
<div class="login-footer">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo.png') }}" alt="IOByte"></a>. All rights reserved.</span>
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" class="form-control" name="password_confirmation" placeholder="Confirm Password" required autocomplete="new-password">
</div>
<button class="btn btn-custom" style="width: 100%">{{ __('Reset Password') }}</button>
</form>
</div>
</div>
</div>
@endsection
@section('javascript')
<script>
window.onload = () => {
const passInput = document.getElementById('password_confirmation');
passInput.onpaste = (e) => {
e.preventDefault();
};
};
</script>
@endsection

View file

@ -1,45 +1,65 @@
@extends('layouts.default')
@extends('layouts.form')
@section('body')
<div class="page">
<div class="form">
<form method="post" action="{{ route('register') }}">
@csrf
<div class="login-page">
<div class="login-text">
@component('components.title')
@endcomponent
@if($errors->any())
</div>
<div class="login-body">
<div>
<form method="post" action="{{ route('register') }}">
@csrf
@if(!empty(env('APP_LOGO', '')))
<div class="col-xs-12 hidden-xs">
<img src="{{ env('APP_LOGO') }}" style="max-width: 80%; max-height: 50px; height: auto; width: auto">
</div>
<div class="col-xs-12 hidden-lg hidden-md hidden-sm">
<img src="{{ env('APP_LOGO') }}" style="max-width: 80%; max-height: 50px; height: auto; width: auto; filter: brightness(0)">
</div>
@else
<h2 class="text-center">{{ env('APP_NAME', 'ThemePark') }}</h2>
@endif
@if($errors->any())
<div class="alert alert-danger" role="alert">
{{ __($errors->first()) }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
<div class="alert alert-danger" role="alert">
{{ __($errors->first()) }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<label class="col-xs-12">
Username:
<input id="username" type="text" class="form-input" name="username" value="{{ old('username') }}" placeholder="IOByte" required autocomplete="username" autofocus>
</label>
<label class="col-xs-12">
Email:
<input id="email" type="email" class="form-input" name="email" value="{{ old('email') }}" placeholder="my.mail@example.com" required autocomplete="email" autofocus>
</label>
<label class="col-xs-12">
Password:
<input id="password" type="password" class="form-input" name="password" placeholder="••••••••••" required autocomplete="off">
</label>
<label class="col-xs-12">
Confirm Password:
<input id="password_confirmation" type="password" class="form-input" name="password_confirmation" placeholder="••••••••••" required autocomplete="off">
</label>
<div class="col-xs-12">
<button class="btn btn-custom" style="width: 100%">{{ __('Register') }}</button>
<p style="margin-top: 1rem">Already have an account, <a href="{{ route('login') }}">{{ __('Login') }} </a></p>
</div>
</form>
</div>
@endif
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input id="username" type="text" class="form-control" name="username" value="{{ old('username') }}" placeholder="Username" required autocomplete="username" autofocus>
<div class="login-footer">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo.png') }}" alt="IOByte"></a>. All rights reserved.</span>
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" placeholder="Email" required autocomplete="email" autofocus>
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="password" type="password" class="form-control" name="password" placeholder="Password" required autocomplete="off">
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="password_confirmation" type="password" class="form-control" name="password_confirmation" placeholder="Confirm Password" required autocomplete="off">
</div>
<button class="btn btn-custom" style="width: 100%">{{ __('Register') }}</button>
<p>Already have an account, <a href="{{ route('login') }}">{{ __('Login') }} </a></p>
</form>
</div>
</div>
</div>
@endsection
@section('javascript')

View file

@ -1,23 +1,36 @@
@extends('layouts.default')
@extends('layouts.form')
@section('body')
<div class="page">
<div class="form">
@component('components.title')
@endcomponent
@if (session('resent'))
<div class="alert alert-success" role="alert">
{{ __('Email has been resend.') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
<div class="login-page">
<div class="login-text">
@component('components.title')
@endcomponent
</div>
<div class="login-body">
<div>
<form method="POST" action="{{ route('verification.resend') }}">
@csrf
@endif
<p>{{ __('Before proceeding, please check your email for a verification link. If you did not receive an email press the button bellow to resend the email.') }}</p>
<form method="POST" action="{{ route('verification.resend') }}">
@csrf
<button type="submit" class="btn btn-custom" style="width: 100%">{{ __('Resend Email') }}</button>
</form>
@if (session('resent'))
<div class="alert alert-success" role="alert">
{{ __('Email has been resend.') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="col-xs-12">
<p>{{ __('Before proceeding, please check your email for a verification link. If you did not receive an email press the button bellow to resend the email.') }}</p>
<button type="submit" class="btn btn-custom" style="width: 100%; margin-top: 1rem">{{ __('Resend Email') }}</button>
</div>
</form>
</div>
<div class="login-footer">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo.png') }}" alt="IOByte"></a>. All rights reserved.</span>
</div>
</div>
</div>
</div>
@endsection