<?php
Yii::app()->clientScript->registerScript('submit', '
$(document).ready( function() {
   $("#submit_button").click(function() {
      $(this).prop("disabled",true)
         .parents("form").submit();
      });
})
');
?>

<div class="form">

<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'cidades-form',
	'enableAjaxValidation' => false,
    'focus'=>array($model,'CID_DESCRICAO'),
));
?>

	<?php echo FaHtml::getFormInfo($form, $model); ?>

		<div class="row">
		<?php echo $form->labelEx($model,'CID_DESCRICAO'); ?>
		<?php echo $form->textField($model, 'CID_DESCRICAO', array('maxlength' => 60)); ?>
		<?php echo $form->error($model,'CID_DESCRICAO'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'CID_UF'); ?>
		<?php echo $form->dropDownList($model, 'CID_UF', array('AC' => 'AC', 'AL' => 'AL', 'AP' => 'AP', 'AM' => 'AM', 'BA' => 'BA', 'CE' => 'CE', 'DF' => 'DF', 'ES' => 'ES', 'GO' => 'GO', 'MA' => 'MA', 'MS' => 'MS', 'MT' => 'MT', 'MG' => 'MG', 'PR' => 'PR', 'PA' => 'PA', 'PB' => 'PB', 'PE' => 'PE', 'PI' => 'PI', 'RJ' => 'RJ', 'RN' => 'RN', 'RS' => 'RS', 'RO' => 'RO', 'RR' => 'RR', 'SC' => 'SC', 'SE' => 'SE', 'SP' => 'SP', 'TO' => 'TO'), array('prompt' => 'Selecione')); ?>
		<?php echo $form->error($model,'CID_UF'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'CID_DDD'); ?>
		<?php echo $form->textField($model, 'CID_DDD', array('maxlength' => 2)); ?>
		<?php echo $form->error($model,'CID_DDD'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'CID_CODIBGE'); ?>
		<?php echo $form->textField($model, 'CID_CODIBGE'); ?>
		<?php echo $form->error($model,'CID_CODIBGE'); ?>
		</div><!-- row -->
   		<div class="row">
		<?php echo $form->labelEx($model,'CID_SITUACAO'); ?>
		<?php echo $form->dropDownList($model, 'CID_SITUACAO', array('A' => 'Ativo','I' => 'Inativo')); ?>
		<?php echo $form->error($model,'CID_SITUACAO'); ?>
		</div><!-- row -->
        
<?php
echo FaHtml::saveButton();
$this->endWidget();
?>
</div><!-- form -->