mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01: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_cvv' => 'The CVV is not valid.',
|
||||
'cost' => 'Cost',
|
||||
'create_invoice_for_sample' => 'Note: create your first invoice to see a preview here.',
|
||||
|
||||
);
|
||||
|
||||
|
@ -153,7 +153,6 @@
|
||||
|
||||
@if (isset($sampleInvoice) && $sampleInvoice)
|
||||
var sample = {!! $sampleInvoice->toJSON() !!}
|
||||
console.log(sample);
|
||||
$('#sampleData').show().html(prettyJson(sample));
|
||||
@endif
|
||||
});
|
||||
@ -222,6 +221,9 @@
|
||||
{!! trans('texts.customize_help') !!}
|
||||
|
||||
<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 class="modal-footer" style="margin-top: 0px">
|
||||
|
Loading…
Reference in New Issue
Block a user