]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5660 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 21 Jun 2023 10:38:24 +0000 (12:38 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 21 Jun 2023 10:38:24 +0000 (12:38 +0200)
app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php
resources/views/fluidbook_publication/delivery.blade.php [new file with mode: 0644]
resources/views/vendor/backpack/crud/buttons/fluidbook_publication/download.blade.php

index d87c8d7cddf02d14c228233f3c5c1170194c2559..4f3574c78e90fc2eaa0bd3d4b34671068ced42b2 100644 (file)
@@ -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 (file)
index 0000000..cbaa168
--- /dev/null
@@ -0,0 +1 @@
+@dd($fluidbook)
index aa876be0d29732028a7ec1e6194d7b81d97d127d..0dfa1ab661656249305272e3c43e12d9cfe43289 100644 (file)
 
 
 
-//    $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;