Skip to content

Commit

Permalink
small enhancements (#424)
Browse files Browse the repository at this point in the history
* added missing plugins in adminlte:plugins command

* added autofocus in auth views
  • Loading branch information
REJack authored and resslinger committed Nov 19, 2019
1 parent 899d0fd commit 53755b0
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion resources/views/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<form action="{{ $login_url }}" method="post">
{{ csrf_field() }}
<div class="input-group mb-3">
<input type="email" name="email" class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}" value="{{ old('email') }}" placeholder="{{ __('adminlte::adminlte.email') }}">
<input type="email" name="email" class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}" value="{{ old('email') }}" placeholder="{{ __('adminlte::adminlte.email') }}" autofocus>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-envelope"></span>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/passwords/confirm.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<form method="POST" action="{{ route('password.confirm') }}" class="lockscreen-credentials ml-0">
@csrf
<div class="input-group">
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password" placeholder="{{ __('adminlte::adminlte.password') }}">
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password" placeholder="{{ __('adminlte::adminlte.password') }}" autofocus>

<div class="input-group-append">
<button type="submit" class="btn"><i class="fas fa-arrow-right text-muted"></i></button>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/passwords/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<form action="{{ $password_email_url }}" method="post">
{{ csrf_field() }}
<div class="input-group mb-3">
<input type="email" name="email" class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}" value="{{ old('email') }}" placeholder="{{ __('adminlte::adminlte.email') }}">
<input type="email" name="email" class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}" value="{{ old('email') }}" placeholder="{{ __('adminlte::adminlte.email') }}" autofocus>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-envelope"></span>
Expand Down
6 changes: 2 additions & 4 deletions resources/views/passwords/reset.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
{{ csrf_field() }}
<input type="hidden" name="token" value="{{ $token }}">
<div class="input-group mb-3">
<input type="email" name="email" class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}" value="{{ old('email') }}"
placeholder="{{ trans('adminlte::adminlte.email') }}">
<input type="email" name="email" class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}" value="{{ old('email') }}" placeholder="{{ trans('adminlte::adminlte.email') }}" autofocus>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-envelope"></span>
Expand All @@ -43,8 +42,7 @@
@endif
</div>
<div class="input-group mb-3">
<input type="password" name="password" class="form-control {{ $errors->has('password') ? 'is-invalid' : '' }}"
placeholder="{{ trans('adminlte::adminlte.password') }}">
<input type="password" name="password" class="form-control {{ $errors->has('password') ? 'is-invalid' : '' }}" placeholder="{{ trans('adminlte::adminlte.password') }}">
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<div class="input-group mb-3">
<input type="text" name="name" class="form-control {{ $errors->has('name') ? 'is-invalid' : '' }}" value="{{ old('name') }}"
placeholder="{{ __('adminlte::adminlte.full_name') }}">
placeholder="{{ __('adminlte::adminlte.full_name') }}" autofocus>
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-user"></span>
Expand Down
15 changes: 15 additions & 0 deletions src/Console/AdminLtePluginCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,21 @@ class AdminLtePluginCommand extends Command
'package_path' => 'bootstrap-slider',
'assets_path' => 'bootstrap-slider',
],
'bootstrapSwitch' => [
'name' => 'Bootstrap Switch',
'package_path' => 'bootstrap-switch',
'assets_path' => 'bootstrap-switch',
],
'bootstrap4Duallistbox' => [
'name' => 'Bootstrap4 Duallistbox',
'package_path' => 'bootstrap4-duallistbox',
'assets_path' => 'bootstrap4-duallistbox',
],
'bsCustomFileInput' => [
'name' => 'bs-custom-file-input',
'package_path' => 'bs-custom-file-input',
'assets_path' => 'bs-custom-file-input',
],
'chartJs' => [
'name' => 'Chart.js',
'package_path' => 'chart.js',
Expand Down Expand Up @@ -200,6 +210,11 @@ class AdminLtePluginCommand extends Command
'*.json', '*.md', '*.html', '.editorconfig',
],
],
'jqueryValidation' => [
'name' => 'jQuery Validation',
'package_path' => 'jquery-validation',
'assets_path' => 'jquery-validation',
],
'jqvmap' => [
'name' => 'jQVMap',
'package_path' => 'jqvmap',
Expand Down

0 comments on commit 53755b0

Please sign in to comment.