Commit 7701f633 authored by rlgy's avatar rlgy

角色状态默认为正常

parent 6b1c3b03
...@@ -8,34 +8,34 @@ use common\core\ActiveForm; ...@@ -8,34 +8,34 @@ use common\core\ActiveForm;
?> ?>
<?php $form = ActiveForm::begin([ <?php $form = ActiveForm::begin([
'options'=>[ 'options' => [
'class'=>"form-aaa " 'class' => "form-aaa "
] ]
]); ?> ]); ?>
<?= $form->field($model, 'username')->iconTextInput([ <?= $form->field($model, 'username')->iconTextInput([
'class'=>'form-control c-md-2', 'class' => 'form-control c-md-2',
'iconPos' => 'left', 'iconPos' => 'left',
'iconClass' => 'icon-user', 'iconClass' => 'icon-user',
'placeholder' => '登录账号', 'placeholder' => '登录账号',
// 'readonly' =>'readonly', // 'readonly' =>'readonly',
])->label(false) ?> ])->label(false) ?>
<?= $form->field($model, 'password')->iconTextInput([ <?= $form->field($model, 'password')->iconTextInput([
'type' => 'password', 'type' => 'password',
'class'=>'form-control c-md-2', 'class' => 'form-control c-md-2',
'iconPos' => 'left', 'iconPos' => 'left',
'iconClass' => 'icon-lock', 'iconClass' => 'icon-lock',
'placeholder' => '修改时,密码不变可不填' 'placeholder' => '修改时,密码不变可不填'
])->label(false) ?> ])->label(false) ?>
<input type="hidden" value="<?= $role ?>" name="role"> <input type="hidden" value="<?= $role ?>" name="role">
<?php $model->status = 1; ?>
<?= $form->field($model, 'status')->radioList(['1'=>'正常', '0'=>'禁用'])->label('使用状态') ?> <?= $form->field($model, 'status')->radioList(['1' => '正常', '0' => '禁用'])->label('使用状态') ?>
<div class="form-actions"> <div class="form-actions">
<?= Html::submitButton('确定', ['class' => 'btn blue ajax-post','target-form'=>'form-aaa']) ?> <?= Html::submitButton('确定', ['class' => 'btn blue ajax-post', 'target-form' => 'form-aaa']) ?>
<?= Html::button('返回', ['class' => 'btn ','onclick'=>"javascript:history.go(-1);"]) ?> <?= Html::button('返回', ['class' => 'btn ', 'onclick' => "javascript:history.go(-1);"]) ?>
</div> </div>
<?php ActiveForm::end(); ?> <?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