From f2f4f079319baf83c5ad1588eb1962291cbbca6f Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 27 Dec 2014 18:21:59 +0000 Subject: [PATCH] Move setup form into language file --- app/lang/en/cachet.php | 13 ++++++++++++- app/views/setup.blade.php | 28 ++++++++++++++-------------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/app/lang/en/cachet.php b/app/lang/en/cachet.php index d7c830cd..fce8283f 100644 --- a/app/lang/en/cachet.php +++ b/app/lang/en/cachet.php @@ -49,7 +49,18 @@ return [ ], // Forms 'forms' => [ - 'email' => 'Email', + 'email' => 'Email', 'password' => 'Password', + // Setup Form + 'setup' => [ + 'service_details' => 'Service Details', + 'status_page_setup' => 'Status Page Setup', + 'site_name' => 'Site Name', + 'site_domain' => 'Site Domain', + 'show_support' => 'Show support for Cachet?', + 'admin_account' => 'Administrator Account', + 'admin_username' => 'Username', + 'finish_setup' => 'Complete Setup' + ] ] ]; diff --git a/app/views/setup.blade.php b/app/views/setup.blade.php index e5a0e7ab..9d80c452 100644 --- a/app/views/setup.blade.php +++ b/app/views/setup.blade.php @@ -7,21 +7,21 @@
-
Service Details
+
{{ Lang::get('cachet.forms.setup.service_details') }}
{{ Form::open(['name' => 'SetupForm', 'class' => 'form-vertical', 'role' => 'form']) }}
- Status Page Setup + {{ Lang::get('cachet.forms.setup.status_page_setup') }}
- - + + @if($errors->has('settings.app_name')) {{ $errors->first('settings.app_name') }} @endif
- - + + @if($errors->has('settings.app_domain')) {{ $errors->first('settings.app_domain') }} @endif @@ -29,7 +29,7 @@
@@ -37,22 +37,22 @@
Administrator Account
- - + + @if($errors->has('user.username')) {{ $errors->first('user.username') }} @endif
- - + + @if($errors->has('user.email')) {{ $errors->first('user.email') }} @endif
- - + + @if($errors->has('user.password')) {{ $errors->first('user.password') }} @endif @@ -61,7 +61,7 @@
- +
{{ Form::close() }}