public function testPasswordFieldControlGroup() { $I = $this->codeGuy; $html = TbHtml::passwordFieldControlGroup('password', 'secret'); $group = $I->createNode($html, 'div.control-group'); $label = $group->filter('label.control-label'); $I->seeNodeChildren($label, array('input[type=password]')); }
array('placeholder' => 'Password', 'size' => TbHtml::INPUT_SIZE_SMALL)); ?> <?php echo TbHtml::checkBox('rememberMe', false, array('label' => 'Remember me')); ?> <?php echo TbHtml::submitButton('Sign in'); ?> <?php echo TbHtml::endForm(); ?></pre> <h3>Horizontal form</h3> <div class="bs-docs-example"> <?php echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_HORIZONTAL); ?> <?php echo TbHtml::emailFieldControlGroup('email', '', array('label' => 'Email', 'placeholder' => 'Email')); ?> <?php echo TbHtml::passwordFieldControlGroup('password', '', array('label' => 'Password', 'placeholder' => 'Password')); ?> <?php echo TbHtml::checkBoxControlGroup('rememberMe', '', array('label' => 'Remember me', 'controlOptions' => array('after' => TbHtml::submitButton('Sign in')))); ?> <?php echo TbHtml::endForm(); ?> </div> <pre class="prettyprint linenums"> <?php echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_HORIZONTAL); ?> <?php echo TbHtml::emailFieldControlGroup('email', '', array('label' => 'Email', 'placeholder' => 'Email')); ?> <?php echo TbHtml::passwordFieldControlGroup('password', '', array('label' => 'Password', 'placeholder' => 'Password')); ?> <?php echo TbHtml::checkBoxControlGroup('rememberMe', false, array(
<div id='formulario' class="span5" style="float:none;margin:auto;"> <?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'usuarios-form-form', 'enableAjaxValidation' => false, 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL)); echo TbHtml::passwordFieldControlGroup('up', '', array('label' => 'Nueva contraseña', 'placeholder' => 'Escriba la nueva contraseña')); echo TbHtml::passwordFieldControlGroup('upc', '', array('label' => 'Confirme la nueva contraseña', 'placeholder' => 'Repita la contraseña')); ?> </div> <?php $this->endWidget(); ?>