From a7b915fbe14c92c675e8ffc14ddd3057c01acc3a Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 21 Jun 2023 12:38:24 +0200 Subject: [PATCH] wip #5660 @0.25 --- .../FluidbookPublication/DownloadOperation.php | 1 + .../views/fluidbook_publication/delivery.blade.php | 1 + .../buttons/fluidbook_publication/download.blade.php | 12 ++++++------ 3 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 resources/views/fluidbook_publication/delivery.blade.php diff --git a/app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php b/app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php index d87c8d7cd..4f3574c78 100644 --- a/app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php +++ b/app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php @@ -30,6 +30,7 @@ trait DownloadOperation if (!FluidbookPublication::hasPermission($id, 'read')) { abort(401); } + return view('fluidbook_publication.delivery', ['fluidbook' => FluidbookPublication::where('id', $id)->first()]); } protected function download($id, $hash, $file) diff --git a/resources/views/fluidbook_publication/delivery.blade.php b/resources/views/fluidbook_publication/delivery.blade.php new file mode 100644 index 000000000..cbaa168f6 --- /dev/null +++ b/resources/views/fluidbook_publication/delivery.blade.php @@ -0,0 +1 @@ +@dd($fluidbook) diff --git a/resources/views/vendor/backpack/crud/buttons/fluidbook_publication/download.blade.php b/resources/views/vendor/backpack/crud/buttons/fluidbook_publication/download.blade.php index aa876be0d..0dfa1ab66 100644 --- a/resources/views/vendor/backpack/crud/buttons/fluidbook_publication/download.blade.php +++ b/resources/views/vendor/backpack/crud/buttons/fluidbook_publication/download.blade.php @@ -10,12 +10,12 @@ -// $actions['delivery']=[ -// 'label'=>__('Page de téléchargement'), -// 'url'=>$base.'/delivery', -// ]; -// -// $actions['sep_download']='---------'; + $actions['delivery']=[ + 'label'=>__('Page de téléchargement'), + 'url'=>$base.'/delivery', + ]; + + $actions['sep_download']='---------'; foreach (\App\Models\FluidbookPublication::getDownloadVersions() as $k=>$v) { if($k==='scorm'){ continue; -- 2.39.5