From ad288c08ca5bc64b4c8ff7d1684c6f0a10c7b464 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 2 Mar 2015 18:24:02 +0100 Subject: [PATCH] Form: Add the Description decorator by default for native title support --- library/Icinga/Web/Form.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index e97190d66..0ec502aa9 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -913,7 +913,12 @@ class Form extends Zend_Form ->addDecorator('FormDescriptions') ->addDecorator('FormElements') //->addDecorator('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form')) - ->addDecorator('Form'); + ->addDecorator('Form') + ->addDecorator('Description', array( + 'placement' => 'prepend', + 'class' => 'form-title', + 'tag' => 'h1' + )); } }