passwordFieldControlGroup() публичный статический Метод

Generates a control group with a password field.
См. также: self::textInputField
public static passwordFieldControlGroup ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
Результат string the generated control group.
Пример #1
0
 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]'));
 }
Пример #2
0
        array('placeholder' => 'Password', 'size' => TbHtml::INPUT_SIZE_SMALL)); ?>
    <?php echo TbHtml::checkBox('rememberMe', false, array('label' => 'Remember me')); ?>
    <?php echo TbHtml::submitButton('Sign in'); ?>
&lt;?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">
&lt;?php echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_HORIZONTAL); ?>
    &lt;?php echo TbHtml::emailFieldControlGroup('email', '',
        array('label' => 'Email', 'placeholder' => 'Email')); ?>
    &lt;?php echo TbHtml::passwordFieldControlGroup('password', '',
        array('label' => 'Password', 'placeholder' => 'Password')); ?>
    &lt;?php echo TbHtml::checkBoxControlGroup('rememberMe', false, array(
Пример #3
0
<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();
?>