Пример #1
0
            <input name="Programacion[hora_fin]" type="text" value="<?php 
echo $model->hora_fin ? date('Y-m-d G:i:s', $model->hora_fin) : '';
?>
" class="hora_fin form-control" />
        </div>
		<?php 
echo $form->error($model, 'hora_fin');
?>
	</div>
    <div class="form-group">
        <?php 
echo $form->label($model, 'tipo_emision_id', array('class' => 'col-sm-2 control-label'));
?>
        <div class="col-sm-2">
            <?php 
echo $form->dropDownList($model, 'tipo_emision_id', CHtml::listData(TipoEmision::model()->findAll(), 'id', 'nombre'), array('options' => array('5' => array('selected' => true)), 'class' => 'form-control'));
?>
        </div>
        <?php 
echo $form->error($model, 'tipo_emision_id');
?>
    </div>
	<div class="form-group">
		<?php 
echo $form->label($model, 'estado', array('class' => 'col-sm-2 control-label'));
?>
		<div class="col-sm-2">
            <?php 
echo $form->dropDownList($model, 'estado', array('1' => 'Si', '0' => 'No'), array('class' => 'form-control'));
?>
        </div>
Пример #2
0
echo $model->hora_fin ? Horarios::hora($model->hora_fin, true) : '';
?>
" class="hora_fin form-control" required />
			        </div>
					<?php 
echo $form->error($model, 'hora_fin');
?>
				</div>
				<div class="form-group">
			        <?php 
echo $form->label($model, 'tipo_emision_id');
?>
			        <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-rss"></i></span>
			            <?php 
echo $form->dropDownList($model, 'tipo_emision_id', CHtml::listData(TipoEmision::model()->findAll(), 'id', 'nombre'), array('class' => 'form-control', 'required' => true));
?>
			        </div>
			        <?php 
echo $form->error($model, 'tipo_emision_id');
?>
			    </div>
			</div>
		</div>
	</div><!-- ./col-sm-8 -->
	<div class="col-sm-4">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Opciones</h3>
            </div>
            <div class="box-body">