From ed189fcc23b7474fed6f8750a924812a19889bbe Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 31 May 2015 21:19:45 +0300 Subject: [PATCH] Fixed label formatting --- app/Ninja/Repositories/ClientRepository.php | 1 - config/former.php | 2 +- resources/views/accounts/details.blade.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Ninja/Repositories/ClientRepository.php b/app/Ninja/Repositories/ClientRepository.php index 2a52767877..5ff208f362 100644 --- a/app/Ninja/Repositories/ClientRepository.php +++ b/app/Ninja/Repositories/ClientRepository.php @@ -49,7 +49,6 @@ class ClientRepository { if (!$publicId || $publicId == "-1") { $client = Client::createNew(); - $client->currency_id = 1; $contact = Contact::createNew(); $contact->is_primary = true; $contact->send_invoice = true; diff --git a/config/former.php b/config/former.php index 81fb688390..e6f0f3c77c 100644 --- a/config/former.php +++ b/config/former.php @@ -45,7 +45,7 @@ //////////////////////////////////////////////////////////////////// // Where Former should look for translations - 'translate_from' => 'validation.attributes', + 'translate_from' => 'texts', // Whether text that comes out of the translated // should be capitalized (ex: email => Email) automatically diff --git a/resources/views/accounts/details.blade.php b/resources/views/accounts/details.blade.php index fe29160a45..3100a99ef9 100644 --- a/resources/views/accounts/details.blade.php +++ b/resources/views/accounts/details.blade.php @@ -38,7 +38,7 @@ @if (Auth::user()->isPro() && Utils::isNinja()) {{ Former::setOption('capitalize_translations', false) }} {!! Former::text('subdomain')->placeholder('texts.www')->onchange('onSubdomainChange()') !!} - @endif + @endif {!! Former::text('id_number') !!} {!! Former::text('vat_number') !!}