mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Show 'Create first invoice' for sample message
This commit is contained in:
parent
4e9cc45a55
commit
e0499ccf67
@ -1063,6 +1063,7 @@ $LANG = array(
|
|||||||
'invalid_expiry' => 'The expiration date is not valid.',
|
'invalid_expiry' => 'The expiration date is not valid.',
|
||||||
'invalid_cvv' => 'The CVV is not valid.',
|
'invalid_cvv' => 'The CVV is not valid.',
|
||||||
'cost' => 'Cost',
|
'cost' => 'Cost',
|
||||||
|
'create_invoice_for_sample' => 'Note: create your first invoice to see a preview here.',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -153,7 +153,6 @@
|
|||||||
|
|
||||||
@if (isset($sampleInvoice) && $sampleInvoice)
|
@if (isset($sampleInvoice) && $sampleInvoice)
|
||||||
var sample = {!! $sampleInvoice->toJSON() !!}
|
var sample = {!! $sampleInvoice->toJSON() !!}
|
||||||
console.log(sample);
|
|
||||||
$('#sampleData').show().html(prettyJson(sample));
|
$('#sampleData').show().html(prettyJson(sample));
|
||||||
@endif
|
@endif
|
||||||
});
|
});
|
||||||
@ -222,6 +221,9 @@
|
|||||||
{!! trans('texts.customize_help') !!}
|
{!! trans('texts.customize_help') !!}
|
||||||
|
|
||||||
<pre id="sampleData" style="display:none;height:200px;padding-top:16px;"></pre>
|
<pre id="sampleData" style="display:none;height:200px;padding-top:16px;"></pre>
|
||||||
|
@if (empty($sampleInvoice))
|
||||||
|
<div class="help-block">{{ trans('texts.create_invoice_for_sample') }}</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer" style="margin-top: 0px">
|
<div class="modal-footer" style="margin-top: 0px">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user