<h1 class="offset1">Installation</h1> <h2 class="offset1"><small>Enter admin credentials</small></h2> <?php if ($model->hasErrors()) { ?> <?php echo TbHtml::errorSummary($model); ?> <?php } ?> <form method="post" class="form-horizontal"> <?php echo TbHtml::activeTextFieldControlGroup($model, 'username'); ?> <?php echo TbHtml::activePasswordFieldControlGroup($model, 'password'); ?> <?php echo TbHtml::activePasswordFieldControlGroup($model, 'password_verify'); ?> <?php echo TbHtml::activeEmailFieldControlGroup($model, 'email'); ?> <!-- <div class="span3 control-group"> <div class="controls">
<?php echo TbHtml::activeTextFieldControlGroup($model, 'valorAdescontar'); // Envío el id del tipo de coseguro a descontar // echo TbHtml::hiddenField("Descuentocoseguro['iddescuentocoseguro']",$model->iddescuentocoseguro); ?>
/** * Generates a control group with a text field for a model attribute. * @param CModel $model the data model. * @param string $attribute the attribute name. * @param array $htmlOptions additional HTML attributes. * @return string the generated row. * @see TbHtml::activeTextFieldControlGroup */ public function textFieldControlGroup($model, $attribute, $htmlOptions = array()) { $htmlOptions = $this->processRowOptions($model, $attribute, $htmlOptions); return TbHtml::activeTextFieldControlGroup($model, $attribute, $htmlOptions); }
public function testActiveTextFieldControlGroup() { $I = $this->codeGuy; $html = TbHtml::activeTextFieldControlGroup(new Dummy(), 'text'); $group = $I->createNode($html, 'div.control-group'); $label = $group->filter('label.control-label'); $I->seeNodeChildren($label, array('input[type=text]')); }
<?php echo TbHtml::activeTextFieldControlGroup($model, 'valorAdescontar'); echo TbHtml::activeTextFieldControlGroup($model, 'cadaxpracticas',array( 'append' => 'prácticas', 'span' => 2)); // Envío el id del tipo de coseguro a descontar // echo TbHtml::hiddenField("Descuentocoseguro['iddescuentocoseguro']",$model->iddescuentocoseguro); ?>