<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'task-form',
	'enableAjaxValidation'=>false,
)); ?>
<fieldset>
    <legend></legend>
	<p class="note">Fields with <span class="required">*</span> are required.</p>

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

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

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reward'); ?>
		<?php echo $form->textArea($model,'reward',array('rows'=>6, 'cols'=>50)); ?>(暂时定死，以后可以自定义)
		<?php echo $form->error($model,'reward'); ?>
	</div>
    <div class="row">
		<?php echo $form->labelEx($model,'factor'); ?>
		<?php echo $form->textField($model,'factor'); ?>(暂时定死)
		<?php echo $form->error($model,'factor'); ?>
	</div>

    <div class="row">
		<?php echo $form->labelEx($model,'task_url'); ?>
		<?php echo $form->textField($model,'task_url', array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'task_url'); ?>
	</div>
    
    <div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->dropDownList($model,'status', Task::$statusMap);?>
		<?php echo $form->error($model,'status'); ?>
	</div>
    
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
	</div>
</fieldset>

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

</div>