From aee75551b8c5e9303bbd4c9d35d07b85ca67caa1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 6 Sep 2016 10:20:51 +0300 Subject: [PATCH] Tweak styling --- README.md | 1 + app/Http/Controllers/ExportController.php | 1 + resources/views/clients/edit.blade.php | 27 +++++++++++------------ resources/views/vendors/edit.blade.php | 4 ++-- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index aea3ac5e748f..6c47deb6a6f4 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ We're often asked to recommend Laravel/PHP developers to help setup our app and * Integrates with 50+ payment providers with [Omnipay](https://github.com/thephpleague/omnipay) * Recurring invoices with auto-billing * Expenses and vendors +* Import bank statements with [OFX](http://www.ofxhome.com/) * Tasks with time-tracking * File Attachments * Multi-user/multi-company support diff --git a/app/Http/Controllers/ExportController.php b/app/Http/Controllers/ExportController.php index c4467b4ac3d0..3f840bb5bb62 100644 --- a/app/Http/Controllers/ExportController.php +++ b/app/Http/Controllers/ExportController.php @@ -128,6 +128,7 @@ class ExportController extends BaseController if ($key === 'quotes') { $key = 'invoices'; $data['entityType'] = ENTITY_QUOTE; + $data['invoices'] = $data['quotes']; } $sheet->loadView("export.{$key}", $data); }); diff --git a/resources/views/clients/edit.blade.php b/resources/views/clients/edit.blade.php index afdc6fd0c32f..894b8dfa9758 100644 --- a/resources/views/clients/edit.blade.php +++ b/resources/views/clients/edit.blade.php @@ -1,6 +1,5 @@ @extends('header') - @section('onReady') $('input#name').focus(); @stop @@ -19,7 +18,7 @@ ['email' => 'email'] )->addClass('col-md-12 warn-on-exit') ->method($method) !!} - + @include('partials.autocomplete_fix') @if ($client) @@ -31,18 +30,18 @@
-
+

{!! trans('texts.organization') !!}

- + {!! Former::text('name')->data_bind("attr { placeholder: placeholderName }") !!} {!! Former::text('id_number') !!} {!! Former::text('vat_number') !!} {!! Former::text('website') !!} {!! Former::text('work_phone') !!} - + @if (Auth::user()->hasFeature(FEATURE_INVOICE_SETTINGS)) @if ($customLabel1) {!! Former::text('custom_value1')->label($customLabel1) !!} @@ -54,12 +53,12 @@
-
+

{!! trans('texts.address') !!}

- + {!! Former::text('address1') !!} {!! Former::text('address2') !!} {!! Former::text('city') !!} @@ -74,7 +73,7 @@
-
+

{!! trans('texts.contacts') !!}

@@ -85,11 +84,11 @@ afterAdd: showContact }'> {!! Former::hidden('public_id')->data_bind("value: public_id, valueUpdate: 'afterkeydown', attr: {name: 'contacts[' + \$index() + '][public_id]'}") !!} - {!! Former::text('first_name')->data_bind("value: first_name, valueUpdate: 'afterkeydown', + {!! Former::text('first_name')->data_bind("value: first_name, valueUpdate: 'afterkeydown', attr: {name: 'contacts[' + \$index() + '][first_name]'}") !!} {!! Former::text('last_name')->data_bind("value: last_name, valueUpdate: 'afterkeydown', attr: {name: 'contacts[' + \$index() + '][last_name]'}") !!} - {!! Former::text('email')->data_bind("value: email, valueUpdate: 'afterkeydown', + {!! Former::text('email')->data_bind("value: email, valueUpdate: 'afterkeydown', attr: {name: 'contacts[' + \$index() + '][email]', id:'email'+\$index()}") !!} {!! Former::text('phone')->data_bind("value: phone, valueUpdate: 'afterkeydown', attr: {name: 'contacts[' + \$index() + '][phone]'}") !!} @@ -101,7 +100,7 @@
{!! link_to('#', trans('texts.remove_contact').' -', array('data-bind'=>'click: $parent.removeContact')) !!} - + {!! link_to('#', trans('texts.add_contact').' +', array('onclick'=>'return addContact()')) !!} @@ -112,12 +111,12 @@
-
+

{!! trans('texts.additional_info') !!}

- + {!! Former::select('currency_id')->addOption('','') ->placeholder($account->currency ? $account->currency->name : '') ->fromQuery($currencies, 'name', 'id') !!} @@ -231,7 +230,7 @@ } else { return contact.email(); } - }); + }); } @if ($data) diff --git a/resources/views/vendors/edit.blade.php b/resources/views/vendors/edit.blade.php index 0343d8a0eae9..ee215a14400d 100644 --- a/resources/views/vendors/edit.blade.php +++ b/resources/views/vendors/edit.blade.php @@ -32,7 +32,7 @@
-
+

{!! trans('texts.organization') !!}

@@ -67,7 +67,7 @@
-
+

{!! trans('texts.contacts') !!}