<div style="text-align: center;">
<h1>Cambiar contraseña</h1>

<div class="form">

<?php


$form=$this->beginWidget('booster.widgets.TbActiveForm', array(
	'id'=>'usuario-form',
	'enableAjaxValidation'=>false,
)); ?>

	

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		
		<?php echo $form->textFieldGroup($model,'usuario'); ?>
		<?php echo $form->error($model,'usuario'); ?>
	</div>
    <div class="row">
		<?php echo $form->labelEx($model,'fecha_ingreso'); ?>
        <?php
  $this->widget('zii.widgets.jui.CJuiDatePicker', array(
   'model'=>$model,
   'attribute'=>'fecha_ingreso',
   //'value'=>$model->fecha_nacimiento,
   'language' => 'es',
     
   'htmlOptions' => array('readonly'=>"readonly", 'class' => "form-control",),
   'options'=>array(
//    'autoSize'=>true,
//    'defaultDate'=>$model->fecha_nacimiento,
//    'dateFormat'=>'yy-mm-dd',
//    'buttonImage'=>Yii::app()->baseUrl.'/images/calendario.jpg',
//    'buttonImageOnly'=>true,
//    'buttonText'=>'Fecha',
//    'selectOtherMonths'=>true,
//    'showAnim'=>'slide',
//    'showButtonPanel'=>true,
//    'showOn'=>'button', 
//    'showOtherMonths'=>true, 
    'changeMonth' => 'true', 
    'changeYear' => 'true', 
   // 'minDate'=>'date("Y-m-d")', 
    'maxDate'=> "+0d",
    ),
  )); 
 ?>
		<?php //echo $form->textField($model,'fecha_ingreso'); ?>
		<?php echo $form->error($model,'fecha_ingreso'); ?>
	</div>

	<div class="row">
		
		<?php echo $form->textFieldGroup($model,'contrasena'); ?>
		<?php echo $form->error($model,'contrasena'); ?>
	</div>

	
	<div class="row buttons">
		<?php echo CHtml::submitButton('Cambiar contraseña',array('class'=>'btn btn-primary')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->


</div>