<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'behavior-form',
	'enableAjaxValidation'=>false,
)); 
    /** @var TbActiveForm $form */
    /** @var Behavior $model */
    
    ?>

	<p class="help-block">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldRow($model,'name',array('class'=>'span5','maxlength'=>250)); ?>

	<?php echo $form->textAreaRow($model,'description',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?>

	<?php echo $form->textFieldRow($model,'tag',array('class'=>'span5','maxlength'=>250)); ?>

	<?php echo $form->textFieldRow($model,'confirmable',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'epoch',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'priority',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'alarm_tag_name',array('class'=>'span5','maxlength'=>255)); ?>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
