From: Vincent Vanwaelscappel Date: Tue, 18 Feb 2025 13:08:42 +0000 (+0100) Subject: wip #7321 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=859cd88cb871e5102f773f901e7bd45a9e07e1e3;p=fluidbook-toolbox.git wip #7321 @0.5 --- diff --git a/app/SubForms/Link/PageBackgroundColor.php b/app/SubForms/Link/PageBackgroundColor.php index 6ec0caa98..ec05e1742 100644 --- a/app/SubForms/Link/PageBackgroundColor.php +++ b/app/SubForms/Link/PageBackgroundColor.php @@ -3,14 +3,16 @@ namespace App\SubForms\Link; // __('!! Editeur de liens') use App\Fluidbook\Link\Link; +use Cubist\Backpack\Magic\Fields\FilesOrURL; class PageBackgroundColor extends Meta { - public $type = Link::COLOR; + public $type = Link::PAGE_BACKGROUND_COLOR; public function addDestinationField() { $this->addField('to', \Cubist\Backpack\Magic\Fields\Color::class, __('Couleur du fond'), ['allows_alpha' => false, 'allows_empty' => true]); + $this->addField('alternative', FilesOrURL::class, __('Image de fond'), $this->getFilesOrURLEntry() + ['accept' => self::$_acceptImage]); $this->addField('extra', \Cubist\Backpack\Magic\Fields\Color::class, __('Couleur des flèches'), ['default' => '', 'allows_alpha' => false, 'allows_empty' => true]); parent::addDestinationField(); }