_user.php 865 B

1234567891011121314151617181920212223242526
  1. <?php
  2. use common\models\ShareLevel;
  3. use common\modules\user\models\User;
  4. use yii\helpers\ArrayHelper;
  5. /*
  6. * This file is part of the Dektrium project.
  7. *
  8. * (c) Dektrium project <http://github.com/dektrium>
  9. *
  10. * For the full copyright and license information, please view the LICENSE.md
  11. * file that was distributed with this source code.
  12. */
  13. /**
  14. * @var yii\widgets\ActiveForm $form
  15. * @var User $user
  16. */
  17. ?>
  18. <?= $form->field($user, 'username')->textInput(['maxlength' => 255, 'readonly' => $user->type == User::TYPE_PERSON])->hint($user->type == User::TYPE_PERSON ? '微信用户不能修改用户名' : '') ?>
  19. <?= $form->field($user, 'nickname')->textInput() ?>
  20. <?= $form->field($user, 'password')->passwordInput() ?>
  21. <?= $form->field($user, 'email')->textInput(['maxlength' => 255]) ?>
  22. <?= $form->field($user, 'tel')->textInput(['maxlength' => 255]) ?>