Skip to content

Commit

Permalink
some changes for attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Dec 28, 2017
1 parent 97afc50 commit 94b7e9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/incomes/invoices/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ function addItem() {
$('#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') }}";
Expand Down
6 changes: 6 additions & 0 deletions resources/views/incomes/invoices/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 94b7e9e

Please sign in to comment.