Use template layout for authentication

This commit is contained in:
Dane Everitt 2017-01-14 23:17:31 -05:00
parent 457ed28b0b
commit d4adedd4a0
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
5 changed files with 241 additions and 191 deletions

View File

@ -1,27 +1,30 @@
<!DOCTYPE html> {{-- Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com> --}}
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ Settings::get('company', 'Pterodactyl') }} - Login</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
{!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!}
{!! Theme::css('vendor/adminlte/admin.min.css') !!}
{!! Theme::css('css/pterodactyl.css') !!}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<!--[if lt IE 9]> {{-- Permission is hereby granted, free of charge, to any person obtaining a copy --}}
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> {{-- of this software and associated documentation files (the "Software"), to deal --}}
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> {{-- in the Software without restriction, including without limitation the rights --}}
<![endif]--> {{-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --}}
</head> {{-- copies of the Software, and to permit persons to whom the Software is --}}
<body class="hold-transition login-page"> {{-- furnished to do so, subject to the following conditions: --}}
<div class="login-box">
<div class="login-logo"> {{-- The above copyright notice and this permission notice shall be included in all --}}
{{ Settings::get('company', 'Pterodactyl') }} {{-- copies or substantial portions of the Software. --}}
</div>
<div class="login-box-body"> {{-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --}}
{{-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --}}
{{-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --}}
{{-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --}}
{{-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --}}
{{-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE --}}
{{-- SOFTWARE. --}}
@extends('layouts.auth')
@section('title')
Login
@endsection
@section('content')
<div class="login-box-body">
@if (count($errors) > 0) @if (count($errors) > 0)
<div class="callout callout-danger"> <div class="callout callout-danger">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
@ -64,9 +67,5 @@
</div> </div>
</form> </form>
<a href="{{ route('auth.password') }}">{{ trans('auth.forgot_password') }}</a><br> <a href="{{ route('auth.password') }}">{{ trans('auth.forgot_password') }}</a><br>
</div> </div>
</div> @endsection
{!! Theme::js('vendor/jquery/jquery.min.js') !!}
{!! Theme::js('vendor/bootstrap/bootstrap.min.js') !!}
</body>
</html>

View File

@ -1,27 +1,30 @@
<!DOCTYPE html> {{-- Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com> --}}
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ Settings::get('company', 'Pterodactyl') }} - Forgot Password</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
{!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!}
{!! Theme::css('vendor/adminlte/admin.min.css') !!}
{!! Theme::css('css/pterodactyl.css') !!}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<!--[if lt IE 9]> {{-- Permission is hereby granted, free of charge, to any person obtaining a copy --}}
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> {{-- of this software and associated documentation files (the "Software"), to deal --}}
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> {{-- in the Software without restriction, including without limitation the rights --}}
<![endif]--> {{-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --}}
</head> {{-- copies of the Software, and to permit persons to whom the Software is --}}
<body class="hold-transition login-page"> {{-- furnished to do so, subject to the following conditions: --}}
<div class="login-box">
<div class="login-logo"> {{-- The above copyright notice and this permission notice shall be included in all --}}
{{ Settings::get('company', 'Pterodactyl') }} {{-- copies or substantial portions of the Software. --}}
</div>
<div class="login-box-body"> {{-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --}}
{{-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --}}
{{-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --}}
{{-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --}}
{{-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --}}
{{-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE --}}
{{-- SOFTWARE. --}}
@extends('layouts.auth')
@section('title')
Forgot Password
@endsection
@section('content')
<div class="login-box-body">
@if (session('status')) @if (session('status'))
<div class="callout callout-success"> <div class="callout callout-success">
{{ trans('auth.email_sent') }} {{ trans('auth.email_sent') }}
@ -48,9 +51,5 @@
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> @endsection
{!! Theme::js('vendor/jquery/jquery.min.js') !!}
{!! Theme::js('vendor/bootstrap/bootstrap.min.js') !!}
</body>
</html>

View File

@ -1,27 +1,30 @@
<!DOCTYPE html> {{-- Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com> --}}
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ Settings::get('company', 'Pterodactyl') }} - Reset Password</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
{!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!}
{!! Theme::css('vendor/adminlte/admin.min.css') !!}
{!! Theme::css('css/pterodactyl.css') !!}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<!--[if lt IE 9]> {{-- Permission is hereby granted, free of charge, to any person obtaining a copy --}}
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> {{-- of this software and associated documentation files (the "Software"), to deal --}}
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> {{-- in the Software without restriction, including without limitation the rights --}}
<![endif]--> {{-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --}}
</head> {{-- copies of the Software, and to permit persons to whom the Software is --}}
<body class="hold-transition login-page"> {{-- furnished to do so, subject to the following conditions: --}}
<div class="login-box">
<div class="login-logo"> {{-- The above copyright notice and this permission notice shall be included in all --}}
{{ Settings::get('company', 'Pterodactyl') }} {{-- copies or substantial portions of the Software. --}}
</div>
<div class="login-box-body"> {{-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --}}
{{-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --}}
{{-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --}}
{{-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --}}
{{-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --}}
{{-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE --}}
{{-- SOFTWARE. --}}
@extends('layouts.auth')
@section('title')
Reset Password
@endsection
@section('content')
<div class="login-box-body">
<p class="login-box-msg">{{ trans('auth.reset_password_text') }}</p> <p class="login-box-msg">{{ trans('auth.reset_password_text') }}</p>
<form action="{{ route('auth.reset.post') }}" method="POST"> <form action="{{ route('auth.reset.post') }}" method="POST">
<div class="form-group"> <div class="form-group">
@ -66,9 +69,5 @@
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> @endsection
{!! Theme::js('vendor/jquery/jquery.min.js') !!}
{!! Theme::js('vendor/bootstrap/bootstrap.min.js') !!}
</body>
</html>

View File

@ -0,0 +1,53 @@
{{-- Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com> --}}
{{-- Permission is hereby granted, free of charge, to any person obtaining a copy --}}
{{-- of this software and associated documentation files (the "Software"), to deal --}}
{{-- in the Software without restriction, including without limitation the rights --}}
{{-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --}}
{{-- copies of the Software, and to permit persons to whom the Software is --}}
{{-- furnished to do so, subject to the following conditions: --}}
{{-- The above copyright notice and this permission notice shall be included in all --}}
{{-- copies or substantial portions of the Software. --}}
{{-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --}}
{{-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --}}
{{-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --}}
{{-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --}}
{{-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --}}
{{-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE --}}
{{-- SOFTWARE. --}}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ Settings::get('company', 'Pterodactyl') }} - @yield('title')</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
@section('scripts')
{!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!}
{!! Theme::css('vendor/adminlte/admin.min.css') !!}
{!! Theme::css('css/pterodactyl.css') !!}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
@show
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
{{ Settings::get('company', 'Pterodactyl') }}
</div>
@yield('content')
<p class="small text-muted">
Copyright &copy; 2015 - {{ date('Y') }} <a href="https://pterodactyl.io/" target="_blank">Pterodactyl Software &amp; Design</a>.<br />
</p>
</div>
{!! Theme::js('js/vendor/jquery/jquery.min.js') !!}
{!! Theme::js('vendor/bootstrap/bootstrap.min.js') !!}
</body>
</html>