Esempio n. 1
0
echo $form->labelEx($model, 'insercion');
?>
		<?php 
if (!$model->insercion == '1') {
    ?>
		<?php 
    echo $form->checkBox($model, 'insercion', array('disabled' => $model->isNewRecord ? '' : 'disabled'));
    ?>
		<?php 
} else {
    ?>
			<?php 
    echo $form->hiddenField($model, 'insercion', array('value' => '1'));
    ?>
			<?php 
    echo CHTml::checkBox('chcbosinsercion', array('value' => '1', 'disabled' => 'disabled'));
    ?>
		<?php 
}
?>

		<?php 
echo $form->error($model, 'insercion');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'descripcion');
?>
		<?php