<?php
use home\assets\MainAsset;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use yii\helpers\Url;
use common\models\User;

$attrLabels = $model->attributeLabels();
$form = ActiveForm::begin([
                'id' => 'main-form',
				'options' => ['class' => 'informationform f14'],
                'action' => $action,
				'fieldConfig' => [
					'options' => ['tag' => 'td'],
					'template' => "{input}{hint}{error}",
					'errorOptions' => ["class" => "error" ]
				]
            ]);
?>

				<table cellpadding="0" cellspacing="10" width="100%">
					<tbody>
						<tr>
							<td align="right" width="80"><?= $model->getAttributeLabel('name') ?>：</td>
							<?= $form->field($model, 'name')->textInput(['class' => 'form-control']) ?>
							<td><span class="redstar">*</span></td> <!--如果不需要*号,可以删除*号，请勿删除td标签,以此保留原来的格式-->
						</tr>
						<tr>
							<td align="right"><?= $model->getAttributeLabel('sort') ?>：</td>
							<?= $form->field($model, 'sort')->textInput(['class' => 'form-control']) ?>
							<td></td> <!--如果不需要*号,可以删除*号，请勿删除td标签,以此保留原来的格式-->
						</tr>
						<tr>
							<td align="right"><?= $model->getAttributeLabel('status') ?>：</td>
							<?= $form->field($model, 'status')->radioList(User::getStatusList(), ['itemOptions' => ['labelOptions' => ['class'=>'radio-inline'] ] ]) ?>
							<td></td> 
						</tr>
					   
					</tbody>
				</table>
				<?= ($model->isNewRecord)?'':Html::hiddenInput('id' ,$model->status_id); ?>

			<?php ActiveForm::end(); ?>