mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fullscreen view for credits
This commit is contained in:
parent
638a2a9230
commit
cd2a104fbc
@ -22,8 +22,15 @@ class CreditController extends Controller
|
||||
|
||||
public function show(ShowCreditRequest $request, Credit $credit)
|
||||
{
|
||||
return $this->render('credits.show', [
|
||||
'credit' => $credit,
|
||||
]);
|
||||
set_time_limit(0);
|
||||
|
||||
$data = ['credit' => $credit];
|
||||
|
||||
|
||||
if ($request->query('mode') === 'fullscreen') {
|
||||
return render('credits.show-fullscreen', $data);
|
||||
}
|
||||
|
||||
return $this->render('credits.show', $data);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,2 @@
|
||||
<iframe src="{{ $credit->pdf_file_path(null, 'url', true) }}"
|
||||
style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe>
|
Loading…
x
Reference in New Issue
Block a user