Exemplo n.º 1
0
    <p class="help-block">Los campos con un <span class="required">*</span> son requeridos.</p>

    <?php 
echo $form->errorSummary($model);
?>

    <?php 
echo $form->textFieldControlGroup($model, 'emp_rut', array('maxlength' => 13, 'disabled' => Yii::app()->controller->action->id !== 'create'));
?>
    <?php 
echo $form->dropDownListControlGroup($model, 'tem_id', CHtml::listData(TipoEmpresa::model()->findAll('tem_desabilitado=0'), 'tem_id', 'tem_nombre'), array('empty' => 'Seleccione un tipo'));
?>
    <?php 
echo $form->dropDownListControlGroup($model, 'are_id', CHtml::listData(AreaOperativa::model()->findAll('are_desabilitado=0'), 'are_id', 'are_nombre'), array('empty' => 'Seleccione un Área'));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'emp_nombre', array('maxlength' => 256));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'emp_direccion', array('maxlength' => 512));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'emp_fono', array('maxlength' => 64));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'emp_email', array('maxlength' => 256));
?>

    <?php 
echo BsHtml::formActions(array(BsHtml::submitButton('Guardar', array('color' => BsHtml::BUTTON_COLOR_PRIMARY))));
$this->endWidget();
Exemplo n.º 2
0
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day1');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day2');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day3');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day4');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day5');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day6');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day7');
?>
        
    </fieldset>

    <?php 
echo BsHtml::formActions(array(BsHtml::resetButton('Сброс', array('color' => BsHtml::BUTTON_COLOR_WARNING, 'icon' => BsHtml::GLYPHICON_REFRESH)), BsHtml::submitButton('Готово', array('color' => BsHtml::BUTTON_COLOR_SUCCESS, 'icon' => BsHtml::GLYPHICON_OK))), array('class' => 'form-actions'));
?>
    

<?php 
$this->endWidget();