From 3355adcce243f56bb8e4c3062deefcae16a73a06 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Fri, 28 Sep 2018 11:36:02 +0800 Subject: [PATCH] Update installation form Set website to not required Add web address placeholder as a hint Update validation message for invalid url entry --- resources/lang/de/validation.php | 2 +- resources/lang/en/validation.php | 2 +- resources/lang/id/validation.php | 2 +- resources/views/auth/app-install.blade.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lang/de/validation.php b/resources/lang/de/validation.php index e2d89e0..f8e9997 100644 --- a/resources/lang/de/validation.php +++ b/resources/lang/de/validation.php @@ -77,7 +77,7 @@ return [ 'string' => 'Das :attribute muss ein String sein.', 'timezone' => 'Das :attribute muss eine gültige Zeitzone sein.', 'unique' => 'Das :attribute ist bereits vergeben.', - 'url' => 'Das :attribute Format ist ungültig.', + 'url' => 'Bitte geben Sie eine gültige Domain mit http/https ein.', /* |-------------------------------------------------------------------------- diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index 75bc8b5..e4c4a49 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -77,7 +77,7 @@ return [ 'string' => 'The :attribute must be a string.', 'timezone' => 'The :attribute must be a valid zone.', 'unique' => 'The :attribute has already been taken.', - 'url' => 'The :attribute format is invalid.', + 'url' => 'Please enter a valid domain with http/https.', /* |-------------------------------------------------------------------------- diff --git a/resources/lang/id/validation.php b/resources/lang/id/validation.php index 9d9f3e0..64c9152 100644 --- a/resources/lang/id/validation.php +++ b/resources/lang/id/validation.php @@ -77,7 +77,7 @@ return [ 'string' => 'Isian :attribute harus berupa string.', 'timezone' => 'Isian :attribute harus berupa zona waktu yang valid.', 'unique' => 'Isian :attribute sudah ada sebelumnya.', - 'url' => 'Format isian :attribute tidak valid.', + 'url' => 'Mohon isi domain yang valid beserta http/https.', /* |--------------------------------------------------------------------------------------- diff --git a/resources/views/auth/app-install.blade.php b/resources/views/auth/app-install.blade.php index e32f90a..bce3cb6 100644 --- a/resources/views/auth/app-install.blade.php +++ b/resources/views/auth/app-install.blade.php @@ -18,7 +18,7 @@

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

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