_profile.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. * @var dektrium\user\models\Profile $profile
  16. */
  17. ?>
  18. <?php $this->beginContent('@dektrium/user/views/admin/update.php', ['user' => $user]) ?>
  19. <?php $form = ActiveForm::begin([
  20. 'layout' => 'horizontal',
  21. 'enableAjaxValidation' => true,
  22. 'enableClientValidation' => false,
  23. 'fieldConfig' => [
  24. 'horizontalCssClasses' => [
  25. 'wrapper' => 'col-sm-9',
  26. ],
  27. ],
  28. ]); ?>
  29. <?= $form->field($profile, 'firma_full') ?>
  30. <?= $form->field($profile, 'inn') ?>
  31. <?= $form->field($profile, 'zkpo') ?>
  32. <?= $form->field($profile, 'u_address') ?>
  33. <?= $form->field($profile, 'f_address') ?>
  34. <?= $form->field($profile, 'member') ?>
  35. <?= $form->field($profile, 'phone') ?>
  36. <?= $form->field($profile, 'fax') ?>
  37. <?= $form->field($profile, 'member_email') ?>
  38. <?= $form->field($profile, 'site') ?>
  39. <?= $form->field($profile, 'files') ?>
  40. <div class="form-group">
  41. <div class="col-lg-offset-3 col-lg-9">
  42. <?= Html::submitButton(Yii::t('user', 'Update'), ['class' => 'btn btn-block btn-success']) ?>
  43. </div>
  44. </div>
  45. <?php ActiveForm::end(); ?>
  46. <?php $this->endContent() ?>