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();
}