mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Don’t show history select if no options
This commit is contained in:
parent
b7c783aa15
commit
47381d54f2
@ -49,12 +49,20 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
{!! Former::open()->addClass('form-inline')->onchange('refreshPDF()') !!}
|
{!! 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')) !!}
|
{!! Button::primary(trans('texts.edit_' . $invoice->getEntityType()))->asLinkTo(URL::to('/' . $invoice->getEntityType() . 's/' . $invoice->public_id . '/edit'))->withAttributes(array('class' => 'pull-right')) !!}
|
||||||
{!! Former::close() !!}
|
{!! Former::close() !!}
|
||||||
|
|
||||||
<br/> <br/>
|
<br/> <br/>
|
||||||
|
|
||||||
|
@if ( ! count($versionsSelect))
|
||||||
|
<br/> <br/>
|
||||||
|
@endif
|
||||||
|
|
||||||
@include('invoices.pdf', ['account' => Auth::user()->account, 'pdfHeight' => 800])
|
@include('invoices.pdf', ['account' => Auth::user()->account, 'pdfHeight' => 800])
|
||||||
|
|
||||||
@if (Utils::hasFeature(FEATURE_DOCUMENTS) && $invoice->account->invoice_embed_documents)
|
@if (Utils::hasFeature(FEATURE_DOCUMENTS) && $invoice->account->invoice_embed_documents)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user