12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- /*
- * This file is part of the Dektrium project.
- *
- * (c) Dektrium project <http://github.com/dektrium>
- *
- * For the full copyright and license information, please view the LICENSE.md
- * file that was distributed with this source code.
- */
- use yii\bootstrap\ActiveForm;
- use yii\bootstrap\Nav;
- use yii\helpers\Html;
- /**
- * @var yii\web\View $this
- * @var dektrium\user\models\User $user
- */
- $this->title = '新建用户';
- $this->params['breadcrumbs'][] = ['label' => '用户', 'url' => ['index']];
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <div class="row">
- <div class="col-md-3">
- <div class="panel panel-default">
- <div class="panel-body">
- <?= Nav::widget([
- 'options' => [
- 'class' => 'nav-pills nav-stacked',
- ],
- 'items' => [
- ['label' => Yii::t('app', 'Account details'), 'url' => ['/user/admin/create']],
- ['label' => Yii::t('app', 'Profile details'), 'options' => [
- 'class' => 'disabled',
- 'onclick' => 'return false;',
- ]],
- ],
- ]) ?>
- </div>
- </div>
- </div>
- <div class="col-md-9">
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="alert alert-info">
- 默认密码 111111
- </div>
- <?php $form = ActiveForm::begin(); ?>
- <?= $this->render('_user', ['form' => $form, 'user' => $user]) ?>
- <div class="form-group">
- <?= Html::submitButton( '创建', ['class' => 'btn bg-maroon btn-flat btn-block']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
- </div>
- </div>
|