From 707c4e9951cfd04f6d2c8798ea1badb0a904c4d5 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Tue, 20 Mar 2018 17:48:42 +0800 Subject: [PATCH] Update app auth views --- resources/views/auth/app-install.blade.php | 20 ++++++++++---------- resources/views/auth/login.blade.php | 12 ++++++------ resources/views/auth/passwords/change.blade.php | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/resources/views/auth/app-install.blade.php b/resources/views/auth/app-install.blade.php index 30d1fce..e32f90a 100644 --- a/resources/views/auth/app-install.blade.php +++ b/resources/views/auth/app-install.blade.php @@ -4,7 +4,7 @@ @section('content')
- +
{!! Form::open(['route' => 'app.install']) !!} @@ -16,30 +16,30 @@
-

{{ trans('app_install.agency_info_text') }}

- {!! FormField::text('agency_name', ['required' => true, 'label' => trans('agency.name')]) !!} - {!! FormField::text('agency_website', ['required' => true, 'label' => trans('agency.website')]) !!} +

{{ __('app_install.agency_info_text') }}

+ {!! FormField::text('agency_name', ['required' => true, 'label' => __('agency.name')]) !!} + {!! FormField::text('agency_website', ['required' => true, 'label' => __('agency.website')]) !!}

-

{{ trans('app_install.admin_info_text') }}

+

{{ __('app_install.admin_info_text') }}

- {!! FormField::text('name', ['required' => true, 'label' => trans('app_install.admin_name')]) !!} + {!! FormField::text('name', ['required' => true, 'label' => __('app_install.admin_name')]) !!}
- {!! FormField::email('email', ['required' => true, 'label' => trans('app_install.admin_email')]) !!} + {!! FormField::email('email', ['required' => true, 'label' => __('app_install.admin_email')]) !!}
- {!! FormField::password('password', ['required' => true, 'label' => trans('auth.password')]) !!} + {!! FormField::password('password', ['required' => true, 'label' => __('auth.password')]) !!}
- {!! FormField::password('password_confirmation', ['required' => true, 'label' => trans('auth.password_confirmation')]) !!} + {!! FormField::password('password_confirmation', ['required' => true, 'label' => __('auth.password_confirmation')]) !!}
- {!! Form::submit(trans('app_install.button'), ['class' => 'btn btn-success btn-block btn-lg']) !!} + {!! Form::submit(__('app_install.button'), ['class' => 'btn btn-success btn-block btn-lg']) !!} {!! Form::close() !!} diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 5d4705b..f2ffb4c 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -1,6 +1,6 @@ @extends('layouts.guest') -@section('title', trans('auth.login')) +@section('title', __('auth.login')) @section('content') @include('flash::message') @@ -9,11 +9,11 @@

{{ config('app.name') }}

- {{ Form::open(['route'=>'auth.login']) }} - {!! FormField::email('email', ['label' => false, 'placeholder'=> trans('auth.email')]) !!} - {!! FormField::password('password', ['label' => false, 'placeholder'=> trans('auth.password')]) !!} - {{ Form::submit(trans('auth.login'), ['class'=>'btn btn-success btn-block']) }} - {{ link_to_route('auth.reset-request', trans('auth.forgot_password'), [], ['class'=>'btn btn-link']) }} + {{ Form::open(['route' => 'auth.login']) }} + {!! FormField::email('email', ['label' => false, 'placeholder'=> __('auth.email')]) !!} + {!! FormField::password('password', ['label' => false, 'placeholder'=> __('auth.password')]) !!} + {{ Form::submit(__('auth.login'), ['class' => 'btn btn-success btn-block']) }} + {{ link_to_route('auth.reset-request', __('auth.forgot_password'), [], ['class' => 'btn btn-link']) }} {{ Form::close() }}
diff --git a/resources/views/auth/passwords/change.blade.php b/resources/views/auth/passwords/change.blade.php index da3570f..ed51056 100644 --- a/resources/views/auth/passwords/change.blade.php +++ b/resources/views/auth/passwords/change.blade.php @@ -1,23 +1,23 @@ @extends('layouts.app') -@section('title', trans('auth.change_password')) +@section('title', __('auth.change_password')) @section('content')
- {!! Form::open(['route'=>'auth.change-password', 'method' => 'patch']) !!} + {!! Form::open(['route' => 'auth.change-password', 'method' => 'patch']) !!}
- {!! FormField::password('old_password', ['label' => false, 'placeholder' => trans('auth.old_password')]) !!} - {!! FormField::password('password', ['label' => false, 'placeholder' => trans('auth.new_password')]) !!} - {!! FormField::password('password_confirmation', ['label' => false, 'placeholder' => trans('auth.new_password_confirmation')]) !!} + {!! FormField::password('old_password', ['label' => false, 'placeholder' => __('auth.old_password')]) !!} + {!! FormField::password('password', ['label' => false, 'placeholder' => __('auth.new_password')]) !!} + {!! FormField::password('password_confirmation', ['label' => false, 'placeholder' => __('auth.new_password_confirmation')]) !!}
{!! Form::close() !!}