From edea8d0bc29da6bf9a308231b8d2bc628713a08a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 12 Oct 2014 22:36:35 +0300 Subject: [PATCH] Moved custom client and company fields to their respective sections on the PDF --- ...014_10_06_195330_add_invoice_design_table.php | 6 +++--- app/views/accounts/user_management.blade.php | 16 +++++++++------- app/views/invoices/pdf.blade.php | 1 - public/built.js | 12 ++++++------ public/js/script.js | 12 ++++++------ 5 files changed, 24 insertions(+), 23 deletions(-) diff --git a/app/database/migrations/2014_10_06_195330_add_invoice_design_table.php b/app/database/migrations/2014_10_06_195330_add_invoice_design_table.php index 628033735a..d97a063649 100644 --- a/app/database/migrations/2014_10_06_195330_add_invoice_design_table.php +++ b/app/database/migrations/2014_10_06_195330_add_invoice_design_table.php @@ -224,9 +224,9 @@ class AddInvoiceDesignTable extends Migration { z=z+30; doc.setFontSize('8'); - SetPdfColor('Black',doc); - displayClient(doc, invoice, layout.marginLeft, z, layout); - + SetPdfColor('Black',doc); + var clientHeight = displayClient(doc, invoice, layout.marginLeft, z, layout); + layout.tableTop += Math.max(0, clientHeight - 75); marginLeft2=395; //publish left side information diff --git a/app/views/accounts/user_management.blade.php b/app/views/accounts/user_management.blade.php index 1bba993644..09e3f476f2 100644 --- a/app/views/accounts/user_management.blade.php +++ b/app/views/accounts/user_management.blade.php @@ -4,6 +4,15 @@ @parent @include('accounts.nav_advanced') + {{ Former::open('users/delete')->addClass('user-form') }} + {{ Former::legend('user_management') }} + +
+ {{ Former::text('userPublicId') }} +
+ {{ Former::close() }} + + @if (Utils::isPro()) {{ Button::success_link(URL::to('users/create'), trans("texts.add_user"), array('class' => 'pull-right'))->append_with_icon('plus-sign') }} @endif @@ -22,13 +31,6 @@ ->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[3]]]) ->render('datatable') }} - - {{ Former::open('users/delete')->addClass('user-form') }} -
- {{ Former::text('userPublicId') }} -
- {{ Former::close() }} -