Skip to content

Commit d534555

Browse files
committed
smaller print button; footer hidden on print
1 parent efa6fd0 commit d534555

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/config/backpack/base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
// ------
101101

102102
// Footer element classes.
103-
'footer_class' => 'app-footer',
103+
'footer_class' => 'app-footer d-print-none',
104104
// hide it with d-none
105105
// change background color with bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan, bg-white
106106

src/resources/views/crud/show.blade.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
@section('header')
1515
<section class="container-fluid d-print-none">
16-
<h2>
17-
<span class="text-capitalize">{!! $crud->getHeading() ?? $crud->entity_name_plural !!}</span>
18-
<small>{!! $crud->getSubheading() ?? mb_ucfirst(trans('backpack::crud.preview')).' '.$crud->entity_name !!}.</small>
19-
@if ($crud->hasAccess('list'))
20-
<small class=""><a href="{{ url($crud->route) }}" class="font-sm"><i class="fa fa-angle-double-left"></i> {{ trans('backpack::crud.back_to_all') }} <span>{{ $crud->entity_name_plural }}</span></a></small>
21-
@endif
22-
<a href="javascript: window.print();" class="float-right"><i class="fa fa-print"></i></a>
23-
</h2>
16+
<a href="javascript: window.print();" class="btn float-right"><i class="fa fa-print"></i></a>
17+
<h2>
18+
<span class="text-capitalize">{!! $crud->getHeading() ?? $crud->entity_name_plural !!}</span>
19+
<small>{!! $crud->getSubheading() ?? mb_ucfirst(trans('backpack::crud.preview')).' '.$crud->entity_name !!}.</small>
20+
@if ($crud->hasAccess('list'))
21+
<small class=""><a href="{{ url($crud->route) }}" class="font-sm"><i class="fa fa-angle-double-left"></i> {{ trans('backpack::crud.back_to_all') }} <span>{{ $crud->entity_name_plural }}</span></a></small>
22+
@endif
23+
</h2>
2424
</section>
2525
@endsection
2626

0 commit comments

Comments
 (0)