<?php
/* @var $this PackageController */
/* @var $model Package */
/* @var $form CActiveForm */
?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'package-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">带<span class="required">*</span>号的为必填项</p>

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

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

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

	<?php echo CHtml::submitButton($model->isNewRecord ? '提交' : '保存', array('class'=>'btn btn-primary','id'=>'submit')); ?>

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