1
0
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:
Hillel Coren 2016-03-15 22:24:09 +02:00
parent 4e9cc45a55
commit e0499ccf67
2 changed files with 4 additions and 1 deletions

View File

@ -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.',
);

View File

@ -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">