From: Vincent Vanwaelscappel Date: Mon, 13 May 2024 12:32:56 +0000 (+0200) Subject: wip #6896 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9a3aa3fbe2b0d1060cfb608d3f597c30de4d3937;p=fluidbook-toolbox.git wip #6896 @1 --- diff --git a/app/SubForms/Link/Base.php b/app/SubForms/Link/Base.php index 265248450..c8f8cce17 100644 --- a/app/SubForms/Link/Base.php +++ b/app/SubForms/Link/Base.php @@ -273,6 +273,18 @@ class Base extends Form } $this->addField('header_extra', FormSection::class, __('Autres paramètres')); $this->addField('extra', Textarea::class, ''); + $attrs = $this->_getHTMLAttributes(); + if ($attrs) { + $this->addField('header_html_attributes', FormSection::class, __('Attributs HTML')); + foreach ($attrs as $attr) { + $this->addField('html_' . $attr, Text::class, $attr); + } + } + } + + protected function _getHTMLAttributes() + { + return ['class']; } public function getType()