<div class="form">

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

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

	<div class="row">
		<?php echo $form->labelEx($model,'ATE_IDATA'); ?>
		<?php echo $form->dropDownList($model, 'ATE_IDATA', GxHtml::listDataEx(Atas::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'ATE_IDATA'); ?>
	</div><!-- row -->

	<div class="row">
		<?php echo $form->labelEx($model,'ATE_DATA'); ?>
		<?php $form->widget('ext.Utils.widgets.CrmDatePicker', array('model' => $model, 'attribute' => 'ATE_DATA')); ?>
		<?php echo $form->error($model,'ATE_DATA'); ?>
	</div><!-- row -->

	<div class="row">
		<?php echo $form->labelEx($model,'ATE_ASSUNTO'); ?>
		<?php echo $form->textField($model, 'ATE_ASSUNTO', array('maxlength' => 255)); ?>
		<?php echo $form->error($model,'ATE_ASSUNTO'); ?>
	</div><!-- row -->

	<div class="row">
		<?php echo $form->labelEx($model,'ATE_CONTEUDO'); ?>
		<?php echo $form->textArea($model, 'ATE_CONTEUDO'); ?>
		<?php echo $form->error($model,'ATE_CONTEUDO'); ?>
	</div><!-- row -->

	<div class="row">
		<?php echo $form->labelEx($model,'ATE_IDFUNCIONARIO'); ?>
		<?php echo $form->textField($model, 'ATE_IDFUNCIONARIO'); ?>
		<?php echo $form->error($model,'ATE_IDFUNCIONARIO'); ?>
	</div><!-- row -->

	<div class="row">
		<?php echo $form->labelEx($model,'ATE_DATAPROXIMAREUNIAO'); ?>
		<?php $form->widget('ext.Utils.widgets.CrmDatePicker', array('model' => $model, 'attribute' => 'NOME')); 

			'model' => $model,
			'attribute' => 'ATE_DATAPROXIMAREUNIAO',
			'value' => $model->ATE_DATAPROXIMAREUNIAO,
			'options' => array(
				'showButtonPanel' => false,
				'changeYear' => true,
				'dateFormat' => 'yy-mm-dd',
				),
			));
		?>
		<?php echo $form->error($model,'ATE_DATAPROXIMAREUNIAO'); ?>
	</div><!-- row -->

	<div class="row">
		<?php echo $form->labelEx($model,'ATE_HORARIO'); ?>
		<?php echo $form->textField($model, 'ATE_HORARIO'); ?>
		<?php echo $form->error($model,'ATE_HORARIO'); ?>
	</div><!-- row -->

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