]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6005 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Jun 2023 14:30:10 +0000 (16:30 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Jun 2023 14:30:10 +0000 (16:30 +0200)
app/Fields/FluidbookLinkEditor/Action.php
app/SubForms/Link/Action.php [new file with mode: 0644]
app/SubForms/Link/Base.php

index 528751c9a8e5ec739d3f8e209f1fb1ea0baa7abb..53336a32d47994837e48a38ef9f5a9e9b9cf1d2c 100644 (file)
@@ -10,7 +10,6 @@ class Action extends SelectFromArray
 
     public function getOptions()
     {
-
         return [
             'index' => __("Afficher l'index"),
             'chapters' => __('Afficher le sommaire'),
diff --git a/app/SubForms/Link/Action.php b/app/SubForms/Link/Action.php
new file mode 100644 (file)
index 0000000..1bb1691
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+namespace App\SubForms\Link;
+
+use App\Fluidbook\Link\Link;
+
+class Action extends Base
+{
+    public $type = Link::ACTION;
+
+    public function addDestinationField()
+    {
+        $this->addField('to', \App\Fields\FluidbookLinkEditor\Action::class, __('Action à effectuer'));
+    }
+}
index 6d9241a5bc078fdf4c84046822159f4556eb07bc..20b94614f277ff00f1ff737c2a3f523443973dcd 100644 (file)
@@ -102,7 +102,7 @@ class Base extends Form
             ['type' => \Fluidbook\Tools\Links\Link::TRIGGERSLINK, 'label' => __('Déclencher un lien'), 'color' => '#cc0000', 'class' => TriggerLink::class],
             ['type' => \Fluidbook\Tools\Links\Link::FLIPCARD, 'label' => __('Flipcard'), 'color' => '#460e3f', 'class' => Flipcard::class],
             ['type' => \Fluidbook\Tools\Links\Link::PDF, 'label' => __('PDF'), 'color' => '#af48d1', 'class' => PDF::class],
-            //['type' => \Fluidbook\Tools\Links\Link::ACTION, 'label' => __('Action'), 'color' => '#880000', 'class' => Action::class],
+            ['type' => \Fluidbook\Tools\Links\Link::ACTION, 'label' => __('Action'), 'color' => '#880000', 'class' => Action::class],
             //['type' => \Fluidbook\Tools\Links\Link::HTML5MULTIMEDIA, 'label' => __('Lien Multimédia (HTML)'), 'color' => '#34A853', 'disabled' => true, 'class' => Web::class],
             //['type' => \Fluidbook\Tools\Links\Link::BOOKMARK_CORNER, 'label' => __('Lien marque-page sur coin de page'), 'color' => '#000000', 'disabled' => true, 'class' => Web::class],
             //['type' => \Fluidbook\Tools\Links\Link::PAGE_CORNER, 'label' => __('Coin de page'), 'color' => '#f19043', 'disabled' => true, 'class' => Web::class],