Blame view

backend/views/profile/_profile_info.php 1.78 KB
c237629a   Anastasia   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
  <?php
      use artbox\core\components\imagemanager\components\ImageManagerGetPath;
      use artbox\core\components\imagemanager\components\ImageManagerInputWidget;
      use artbox\core\models\User;
      use artbox\core\models\UserData;
      use yii\bootstrap\ActiveForm;
      use yii\bootstrap\Html;
      use yii\web\View;
      
      /**
       * @var User     $user
       * @var UserData $userData
       * @var View     $this
       */
      $imageSearch = new ImageManagerGetPath(
          [
              'mediaPath' => Yii::getAlias('@storage'),
          ]
      );
  ?>
  <?php
      $form = ActiveForm::begin(
          [
              'action'        => [ 'update' ],
              'method'        => 'POST',
              'errorCssClass' => 'has-error bad',
          ]
      );
      
      
      echo Html::tag(
          'div',
          '',
          [
              'class' => 'clearfix',
          ]
      );
      echo Html::submitButton(
          \Yii::t('core', 'Submit'),
          [
              'class' => 'btn btn-default col-xs-4 col-sm-3 col-md-2 personal_info_submit_button',
          ]
      );
      echo Html::tag(
          'div',
          '',
          [
              'class' => 'clearfix',
          ]
      );
      $form::end();
      echo Html::tag('hr');
      echo Html::tag(
          'p',
          \Yii::t(
              'core',
              'Registered on {date}',
              [
                  'date' => \Yii::$app->formatter->asDate($userData->created_at),
              ]
          ),
          [
              'class' => 'small col-xs-6',
          ]
      );
      echo Html::tag(
          'p',
          \Yii::t(
              'core',
              'Last update on {date}',
              [
                  'date' => \Yii::$app->formatter->asDatetime($userData->updated_at, 'php:d.m.Y H:i'),
              ]
          ),
          [
              'class' => 'small col-xs-6 text-right',
          ]
      );