From 1a1263d9d866eb2b84b5ba7d24a3129325cc3572 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 10 Jul 2014 11:09:48 +0200 Subject: [PATCH 001/277] Rename Icinga\Web\Form\Decorator\BootstrapForm We do not use bootstrap anymore but do not want the default Zend decorators either so this decorator got a more common name. refs #5525 --- .../Web/Form/Decorator/BootstrapForm.php | 105 ------------------ .../Web/Form/Decorator/ElementWrapper.php | 70 ++++++++++++ public/css/icinga/forms.less | 6 +- 3 files changed, 71 insertions(+), 110 deletions(-) delete mode 100644 library/Icinga/Web/Form/Decorator/BootstrapForm.php create mode 100644 library/Icinga/Web/Form/Decorator/ElementWrapper.php diff --git a/library/Icinga/Web/Form/Decorator/BootstrapForm.php b/library/Icinga/Web/Form/Decorator/BootstrapForm.php deleted file mode 100644 index 89ad82780..000000000 --- a/library/Icinga/Web/Form/Decorator/BootstrapForm.php +++ /dev/null @@ -1,105 +0,0 @@ - - * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 - * @author Icinga Development Team - * - */ -// {{{ICINGA_LICENSE_HEADER}}} - -namespace Icinga\Web\Form\Decorator; - -use Zend_Form_Decorator_Abstract; - -/** - * Decorator that styles forms in the DOM Bootstrap wants for it's forms - * - * This component replaces the dt/dd wrapping of elements with the approach used by bootstrap. - * - * Labels are drawn for all elements, except hidden, button and submit elements. If you want a - * placeholder for this elements, set the 'addLabelPlaceholder' property. This can be useful in - * cases where you want to put inputs with and inputs without labels on the same line and don't - * want buttons to 'jump' - */ -class BootstrapForm extends Zend_Form_Decorator_Abstract -{ - /** - * An array of elements that won't get a