From 47381d54f29534cc5939d30982e720037dfca617 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 26 Oct 2016 10:28:38 +0300 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20show=20history=20select=20if=20?= =?UTF-8?q?no=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/invoices/history.blade.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/views/invoices/history.blade.php b/resources/views/invoices/history.blade.php index 5330f9d8c9d6..f64d1b265d6d 100644 --- a/resources/views/invoices/history.blade.php +++ b/resources/views/invoices/history.blade.php @@ -49,12 +49,20 @@ @section('content') {!! Former::open()->addClass('form-inline')->onchange('refreshPDF()') !!} - {!! Former::select('version')->options($versionsSelect)->label(trans('select_version'))->style('background-color: white !important') !!} + + @if (count($versionsSelect)) + {!! Former::select('version')->options($versionsSelect)->label(trans('select_version'))->style('background-color: white !important') !!} + @endif + {!! Button::primary(trans('texts.edit_' . $invoice->getEntityType()))->asLinkTo(URL::to('/' . $invoice->getEntityType() . 's/' . $invoice->public_id . '/edit'))->withAttributes(array('class' => 'pull-right')) !!} {!! Former::close() !!}
 
+ @if ( ! count($versionsSelect)) +
 
+ @endif + @include('invoices.pdf', ['account' => Auth::user()->account, 'pdfHeight' => 800]) @if (Utils::hasFeature(FEATURE_DOCUMENTS) && $invoice->account->invoice_embed_documents)