<?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' => 'funcoes-form',
	'enableAjaxValidation' => false,
    'focus'=>array($model,'FNS_DESCRICAO'),
));
?>

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

		<div class="row">
		<?php echo $form->labelEx($model,'FNS_DESCRICAO'); ?>
		<?php echo $form->textField($model, 'FNS_DESCRICAO', array('maxlength' => 50)); ?>
		<?php echo $form->error($model,'FNS_DESCRICAO'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'FNS_SITUACAO'); ?>
		<?php echo $form->dropDownList($model, 'FNS_SITUACAO', array('A' => 'Ativo','I' => 'Inativo')); ?>
		<?php echo $form->error($model,'FNS_SITUACAO'); ?>
		</div><!-- row -->


<?php
echo FaHtml::saveButton();
$this->endWidget();
?>
</div><!-- form -->