2025-04-10 23:19:13 +08:00

47 lines
1.9 KiB
PHP
Executable File

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\AuthItem */
$this->title = '更新运维';
?>
<div class="wrapper wrapper-content">
<div class="ibox-content">
<div class="row pd-10">
<h1><?= Html::encode($this->title) ?></h1>
<hr>
<div class="auth-item-form col-sm-4">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'id')->hiddenInput()->label('')?>
<?= $form->field($model, 'username')->textInput(['readonly'=>true])->label('账号') ?>
<?= $form->field($model, 'nickname')->textInput()->label('姓名') ?>
<?= $form->field($model, 'avatar')->textInput(['placeholder'=>'@web/img/profile_small.png'])->label('头像')?>
<?= $form->field($model, 'email')->textInput(['placeholder'=>''])->label('邮箱')?>
<?= $form->field($model, 'mobile')->textInput(['placeholder'=>''])->label('手机号')?>
<?= $form->field($model, 'auth_key_new')->textInput(['value'=>''])->label('密码')?>
<?= $form->field($model, 'auth_key')->hiddenInput()->label(false)?>
<span class="help-block m-b-none">如果不需要修改密码,留空即可</span>
<?php if($model->username =='fm453' || $model->username =='admin'):?>
<?= $form->field($model->usergroup, 'item_name' )->dropDownList($item,['disabled'=>true])->label('用户组')?>
<?php else:?>
<?= $form->field($model->usergroup, 'item_name' )->dropDownList($item)->label('用户组')?>
<?php endif;?>
<div class="form-group">
<?= Html::submitButton('保存', ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
</div>
</div>
</div>