Permalink
Browse files

Improve Bootstrap 4 styling on login pages, fix rendering of password…

….reset view
  • Loading branch information...
lovett committed Dec 7, 2018
1 parent 1f3d08e commit 6f03abb8f9fa96b5fa4ccdb2db0d2d33abae3684
@@ -133,9 +133,13 @@ public static function getSubnav() {
$resource = static::firstRouteSegment();
$capitalizedResource = ucfirst($resource);
$links = [
LinkHelper::navLink("{$resource}.index", "{$capitalizedResource} List", []),
];
$links = [];
if ($resource === 'password') {
return $links;
}
$link[] = LinkHelper::navLink("{$resource}.index", "{$capitalizedResource} List", []);
if (strpos($action, '@show') !== false || strpos($action, '@edit') !== false) {
$links[] = LinkHelper::navLink("{$resource}.show", "{$capitalizedResource} Overview", $params);
@@ -28,5 +28,6 @@ class ForgotPasswordController extends Controller
public function __construct()
{
$this->middleware('guest');
view()->share('pageTitle', 'Forgot Password');
}
}
@@ -5,14 +5,14 @@
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="card">
<div class="card-heading">Login</div>
<div class="card-header">Login</div>
<div class="card-body">
<form method="POST" action="{{ route('login') }}">
{{ csrf_field() }}
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<label for="email" class="col-md-4 control-label">E-Mail Address</label>
<div class="form-group row {{ $errors->has('email') ? 'has-error' : '' }}">
<label for="email" class="col-md-4 col-form-label text-right">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus>
@@ -25,8 +25,8 @@
</div>
</div>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
<label for="password" class="col-md-4 control-label">Password</label>
<div class="form-group row {{ $errors->has('password') ? 'has-error' : '' }}">
<label for="password" class="col-md-4 col-form-label text-right">Password</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control" name="password" required>
@@ -5,7 +5,7 @@
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="card">
<div class="card-heading">Reset Password</div>
<div class="card-header">Reset Password</div>
<div class="card-body">
@if (session('status'))
@@ -17,21 +17,21 @@
<form method="POST" action="{{ route('password.email') }}">
{{ csrf_field() }}
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<label for="email" class="col-md-4 control-label">E-Mail Address</label>
<div class="form-group row {{ $errors->has('email') ? 'has-error' : '' }}">
<label for="email" class="col-md-4 col-form-label text-right">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required>
@if ($errors->has('email'))
<span class="help-block">
<span class="form-text">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group">
<div class="form-group row">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
Send Password Reset Link
@@ -5,7 +5,7 @@
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="card">
<div class="card-heading">Reset Password</div>
<div class="card-header">Reset Password</div>
<div class="card-body">
<form method="POST" action="{{ route('password.request') }}">
@@ -5,14 +5,14 @@
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="card">
<div class="card-heading">Register</div>
<div class="card-header">Register</div>
<div class="card-body">
<form method="POST" action="{{ route('register') }}">
{{ csrf_field() }}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="name" class="col-md-4 control-label">Name</label>
<div class="form-group row {{ $errors->has('name') ? 'has-error' : '' }}">
<label for="name" class="col-md-4 col-form-label text-right">Name</label>
<div class="col-md-6">
<input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}" required autofocus>
@@ -25,8 +25,8 @@
</div>
</div>
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<label for="email" class="col-md-4 control-label">E-Mail Address</label>
<div class="form-group row {{ $errors->has('email') ? 'has-error' : '' }}">
<label for="email" class="col-md-4 col-form-label text-right">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required>
@@ -39,8 +39,8 @@
</div>
</div>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
<label for="password" class="col-md-4 control-label">Password</label>
<div class="form-group row {{ $errors->has('password') ? 'has-error' : '' }}">
<label for="password" class="col-md-4 col-form-label text-right">Password</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control" name="password" required>
@@ -53,15 +53,15 @@
</div>
</div>
<div class="form-group">
<label for="password-confirm" class="col-md-4 control-label">Confirm Password</label>
<div class="form-group row">
<label for="password-confirm" class="col-md-4 col-form-label text-right">Confirm Password</label>
<div class="col-md-6">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
</div>
</div>
<div class="form-group">
<div class="form-group row">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
Register

0 comments on commit 6f03abb

Please sign in to comment.