45 lines
1.8 KiB
PHP
Executable File
45 lines
1.8 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 = '更新API';
|
|
?>
|
|
<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, '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>
|
|
|
|
<?= $form->field($model, 'sms_type')->textInput(['placeholder'=>'alidayu','readonly'=>'true'])->label('短信接口')?>
|
|
<?= $form->field($model, 'sms_left')->textInput(['placeholder'=>'','type'=>'number'])->label('短信余量')?>
|
|
|
|
<?= $form->field($model, 'status' )->dropDownList($userstatus,['disabled'=>false])->label('状态')?>
|
|
|
|
<div class="form-group">
|
|
<?= Html::submitButton('保存', ['class' => 'btn btn-primary']) ?>
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|