From 859cd88cb871e5102f773f901e7bd45a9e07e1e3 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 18 Feb 2025 14:08:42 +0100 Subject: [PATCH] wip #7321 @0.5 --- app/SubForms/Link/PageBackgroundColor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.39.5