- Registro, activación y entrada de usuarios git-svn-id: https://192.168.0.254/svn/Rodax.factuges_web/trunk@2 e455b18d-f7fe-5245-9c43-e2c35af70a32
36 lines
1009 B
PHP
36 lines
1009 B
PHP
<?php
|
|
/**
|
|
* TbInputSearch class file.
|
|
* @author Christoffer Niska <ChristofferNiska@gmail.com>
|
|
* @copyright Copyright © Christoffer Niska 2011-
|
|
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
|
* @package bootstrap.widgets.input
|
|
*/
|
|
|
|
Yii::import('bootstrap.widgets.input.TbInputInline');
|
|
|
|
/**
|
|
* Bootstrap vertical form input widget.
|
|
* @since 0.9.8
|
|
*/
|
|
class TbInputSearch extends TbInputInline
|
|
{
|
|
/**
|
|
* Renders a text field.
|
|
* @return string the rendered content
|
|
*/
|
|
protected function searchField()
|
|
{
|
|
if (isset($this->htmlOptions['class']))
|
|
$this->htmlOptions['class'] .= ' search-query';
|
|
else
|
|
$this->htmlOptions['class'] = 'search-query';
|
|
|
|
$this->htmlOptions['placeholder'] = $this->model->getAttributeLabel($this->attribute);
|
|
echo $this->getPrepend();
|
|
echo $this->form->textField($this->model, $this->attribute, $this->htmlOptions);
|
|
echo $this->getAppend();
|
|
echo $this->getError().$this->getHint();
|
|
}
|
|
}
|