_user.php 858 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /*
  3. * This file is part of the Dektrium project.
  4. *
  5. * (c) Dektrium project <http://github.com/dektrium>
  6. *
  7. * For the full copyright and license information, please view the LICENSE.md
  8. * file that was distributed with this source code.
  9. */
  10. /**
  11. * @var yii\widgets\ActiveForm $form
  12. * @var dektrium\user\models\User $user
  13. */
  14. ?>
  15. <?= $form->field($user, 'role')
  16. ->radioList(
  17. [
  18. '1' => \Yii::t('app', 'Organizer'),
  19. '2' => \Yii::t('app', 'Member'),
  20. ]
  21. )?>
  22. <?= $form->field($user, 'email')->textInput(['maxlength' => 255]) ?>
  23. <?= $form->field($user, 'username')->textInput(['maxlength' => 255]) ?>
  24. <?= $form->field($user, 'password')->passwordInput() ?>