some changes for attachment

This commit is contained in:
cuneytsenturk 2017-12-28 17:45:34 +03:00
parent 97afc50cfa
commit 94b7e9ec64
2 changed files with 8 additions and 0 deletions

View File

@ -203,7 +203,9 @@
$('#attachment').fancyfile({
text : '{{ trans('general.form.select.file') }}',
style : 'btn-default',
@if($invoice->attachment)
placeholder : '<?php echo $invoice->attachment->basename; ?>'
@endif
});
var autocomplete_path = "{{ url('items/items/autocomplete') }}";

View File

@ -178,6 +178,12 @@
@endpermission
</ul>
</div>
@if($invoice->attachment)
<span>
<a href=""><i class="fa fa-file-{{ $invoice->attachment->aggregate_type }}-o"></i> {{ $invoice->attachment->basename }}</a> <i class="fa fa fa-times"></i>
</span>
@endif
</div>
</div>
</section>