Commit 7701f633 authored by rlgy's avatar rlgy

角色状态默认为正常

parent 6b1c3b03
......@@ -8,34 +8,34 @@ use common\core\ActiveForm;
?>
<?php $form = ActiveForm::begin([
'options'=>[
'class'=>"form-aaa "
'options' => [
'class' => "form-aaa "
]
]); ?>
<?= $form->field($model, 'username')->iconTextInput([
'class'=>'form-control c-md-2',
'iconPos' => 'left',
'iconClass' => 'icon-user',
'class' => 'form-control c-md-2',
'iconPos' => 'left',
'iconClass' => 'icon-user',
'placeholder' => '登录账号',
// 'readonly' =>'readonly',
// 'readonly' =>'readonly',
])->label(false) ?>
<?= $form->field($model, 'password')->iconTextInput([
'type' => 'password',
'class'=>'form-control c-md-2',
'iconPos' => 'left',
'iconClass' => 'icon-lock',
'type' => 'password',
'class' => 'form-control c-md-2',
'iconPos' => 'left',
'iconClass' => 'icon-lock',
'placeholder' => '修改时,密码不变可不填'
])->label(false) ?>
<input type="hidden" value="<?= $role ?>" name="role">
<?= $form->field($model, 'status')->radioList(['1'=>'正常', '0'=>'禁用'])->label('使用状态') ?>
<?php $model->status = 1; ?>
<?= $form->field($model, 'status')->radioList(['1' => '正常', '0' => '禁用'])->label('使用状态') ?>
<div class="form-actions">
<?= Html::submitButton('确定', ['class' => 'btn blue ajax-post','target-form'=>'form-aaa']) ?>
<?= Html::button('返回', ['class' => 'btn ','onclick'=>"javascript:history.go(-1);"]) ?>
<?= Html::submitButton('确定', ['class' => 'btn blue ajax-post', 'target-form' => 'form-aaa']) ?>
<?= Html::button('返回', ['class' => 'btn ', 'onclick' => "javascript:history.go(-1);"]) ?>
</div>
<?php ActiveForm::end(); ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment