diff --git a/resources/lang/en/passwords.php b/resources/lang/en/passwords.php index e73b56d..b076092 100644 --- a/resources/lang/en/passwords.php +++ b/resources/lang/en/passwords.php @@ -13,10 +13,10 @@ return [ | */ - 'password' => 'Passwords must be at least six characters and match the confirmation.', - 'user' => "We can't find a user with that e-mail address.", - 'token' => 'This password reset token is invalid.', - 'sent' => 'We have e-mailed your password reset link!', - 'reset' => 'Your password has been reset!', - + 'password' => 'Passwords must be at least six characters and match the confirmation.', + 'user' => "We can't find a user with that e-mail address.", + 'token' => 'This password reset token is invalid.', + 'sent' => 'We have e-mailed your password reset link!', + 'reset' => 'Your password has been reset!', + 'back_to_login' => 'Back to Login', ]; diff --git a/resources/lang/id/passwords.php b/resources/lang/id/passwords.php index 6659543..08826eb 100644 --- a/resources/lang/id/passwords.php +++ b/resources/lang/id/passwords.php @@ -13,9 +13,10 @@ return [ | */ - 'password' => 'Password harus minimal enam karakter dan cocok dengan konfirmasi.', - 'user' => 'Kami tidak dapat menemukan pengguna dengan email tersebut.', - 'token' => 'Token Reset Password tidak sah.', - 'sent' => 'Kami sudah mengirim email yang berisi tautan untuk mereset Password Anda!', - 'reset' => 'Password Anda sudah direset!', + 'password' => 'Password harus minimal enam karakter dan cocok dengan konfirmasi.', + 'user' => 'Kami tidak dapat menemukan pengguna dengan email tersebut.', + 'token' => 'Token Reset Password tidak sah.', + 'sent' => 'Kami sudah mengirim email yang berisi tautan untuk mereset Password Anda!', + 'reset' => 'Password Anda sudah direset!', + 'back_to_login' => 'Kembali ke Login', ]; diff --git a/resources/views/auth/partials/_notifications.blade.php b/resources/views/auth/partials/_notifications.blade.php deleted file mode 100644 index 6b772f4..0000000 --- a/resources/views/auth/partials/_notifications.blade.php +++ /dev/null @@ -1,15 +0,0 @@ -@if (session('status')) -
- {{ session('status') }} -
-@endif -@if (count($errors) > 0) -
- Ups! Mohon cek kembali form berikut. - -
-@endif \ No newline at end of file diff --git a/resources/views/auth/passwords/email.blade.php b/resources/views/auth/passwords/email.blade.php index edf3d94..442abc0 100644 --- a/resources/views/auth/passwords/email.blade.php +++ b/resources/views/auth/passwords/email.blade.php @@ -1,17 +1,21 @@ @extends('layouts.guest') -@section('title', trans('auth.reset_password')) +@section('title', __('auth.reset_password')) @section('content')
-

{{ trans('auth.reset_password') }}

+

{{ __('auth.reset_password') }}

- @include('auth.partials._notifications') + @if (session('status')) +
+ {{ session('status') }} +
+ @endif {!! Form::open(['route'=>'auth.reset-email']) !!} {!! FormField::email('email') !!} - {!! Form::submit(trans('auth.send_reset_password_link'), ['class'=>'btn btn-success btn-block']) !!} - {!! link_to_route('auth.login','Back to Login', [],['class'=>'btn btn-default btn-block']) !!} + {!! Form::submit(__('auth.send_reset_password_link'), ['class'=>'btn btn-success btn-block']) !!} + {!! link_to_route('auth.login', __('passwords.back_to_login'), [], ['class'=>'btn btn-default btn-block']) !!} {!! Form::close() !!}
diff --git a/resources/views/auth/passwords/reset.blade.php b/resources/views/auth/passwords/reset.blade.php index 8857fc8..6bb5203 100644 --- a/resources/views/auth/passwords/reset.blade.php +++ b/resources/views/auth/passwords/reset.blade.php @@ -1,22 +1,21 @@ @extends('layouts.guest') -@section('title', trans('auth.reset_password')) +@section('title', __('auth.reset_password')) @section('content')