]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6896 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 May 2024 12:32:56 +0000 (14:32 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 May 2024 12:32:56 +0000 (14:32 +0200)
app/SubForms/Link/Base.php

index 2652484508fca858ce8f655d114d22b6bde88170..c8f8cce17a87e2b2599cfd89366ef2bfdcc9e9d2 100644 (file)
@@ -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()