✏️ 正在编辑: Inline.php
路径:
/srv/systems_dir/biblioteca_yuppie/library/Bootstrap/Form/Inline.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * Base form class definition for inline forms * * @category Forms * @package Bootstrap * @subpackage Form * @author Jaime Neto <contato@jaimeneto.com> */ require_once 'Bootstrap/Form.php'; /** * Base form class for inline forms. The inline form displays the form elements as * "inline-blocks", and there is no wrapper for themselves. * * @category Forms * @package Bootstrap * @subpackage Form * @author Jaime Neto <contato@jaimeneto.com> */ class Bootstrap_Form_Inline extends Bootstrap_Form { public function __construct($options = null) { $this->_initializePrefixes(); $this->setDisposition(self::DISPOSITION_INLINE); $options['elementDecorators'] = array( 'ViewHelper', 'Addon', 'ElementErrors', array('Description', array('tag' => 'span', 'class' => 'help-block')), array('Label', array('class' => 'control-label')), array('HtmlTag', array('tag' => 'div', 'class' => 'form-group')), ); parent::__construct($options); } protected function _customizeCheckboxElement(&$element) { $element->setAttrib('inputLabel', $element->getLabel()); $element->setDecorators(array( 'ViewHelper', 'ElementErrors', array('Description', array('tag' => 'span', 'class' => 'help-block')), array('HtmlTag', array('tag' => 'div', 'class' => 'checkbox')), )); } }
💾 保存文件
← 返回文件管理器