_account.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. use yii\bootstrap\ActiveForm;
  11. use yii\helpers\Html;
  12. /**
  13. * @var yii\web\View $this
  14. * @var dektrium\user\models\User $user
  15. */
  16. ?>
  17. <?php $this->beginContent('@dektrium/user/views/admin/update.php', ['user' => $user]) ?>
  18. <?php $form = ActiveForm::begin([
  19. 'layout' => 'horizontal',
  20. 'enableAjaxValidation' => true,
  21. 'enableClientValidation' => false,
  22. 'fieldConfig' => [
  23. 'horizontalCssClasses' => [
  24. 'wrapper' => 'col-sm-9',
  25. ],
  26. ],
  27. ]); ?>
  28. <?= $this->render('_user', ['form' => $form, 'user' => $user]) ?>
  29. <div class="form-group">
  30. <div class="col-lg-offset-3 col-lg-9">
  31. <?= Html::submitButton(Yii::t('user', 'Update'), ['class' => 'btn btn-block btn-success']) ?>
  32. </div>
  33. </div>
  34. <?php ActiveForm::end(); ?>
  35. <?php $this->endContent() ?>