Blame view

frontend/views/accounts/_job_form.php 4.2 KB
eb7e82fb   Administrator   29.02.16
1
  <?php

4b85f536   Yarik   test
2
3
4
5
6
7
8
      /**

       * @var integer $index

       */

      use common\models\Job;

      use yii\helpers\Html;

      use yii\jui\DatePicker;

      use yii\widgets\ActiveForm;

eb7e82fb   Administrator   29.02.16
9
  

4b85f536   Yarik   test
10
11
12
13
14
      $model = new Job([

          'user_id' => \Yii::$app->user->getId(),

          'current' => 0,

      ]);

      $form = ActiveForm::begin();

eb7e82fb   Administrator   29.02.16
15
  ?>

4b85f536   Yarik   test
16
17
  <div class='ajax-loaded'>

      <div class='prev_job_inputs'>

eb7e82fb   Administrator   29.02.16
18
19
          <div class="input-blocks-wrapper">

              <div class="input-blocks">

4b85f536   Yarik   test
20
21
22
                  <?= $form->field($model, '[' . $index . ']name')

                           ->label('Название')

                           ->textInput([ 'class' => 'custom-input-2' ]); ?>

eb7e82fb   Administrator   29.02.16
23
24
              </div>

          </div>

803325d5   Виталий   git
25
          <div class="input-blocks-wrapper hint-link">

eb7e82fb   Administrator   29.02.16
26
              <div class="input-blocks">

4b85f536   Yarik   test
27
28
29
30
                  <?= $form->field($model, '[' . $index . ']link')

                           ->label('Ссылка на компанию на сайте МФП')

                           ->hint('Пример: ' . $_SERVER[ 'HTTP_HOST' ] . '/company/common/1')

                           ->textInput([ 'class' => 'custom-input-2' ]); ?>

eb7e82fb   Administrator   29.02.16
31
32
33
34
              </div>

          </div>

          <div class="input-blocks-wrapper">

              <div class="input-blocks">

4b85f536   Yarik   test
35
36
37
38
39
40
41
42
43
44
45
46
                  <?= $form->field($model, '[' . $index . ']date_start')

                           ->label('Дата начала работы')

                           ->widget(DatePicker::className(), [

                               'options'       => [ 'class' => 'custom-input-2' ],

                               'language'      => 'ru',

                               'dateFormat'    => 'dd-MM-yyyy',

                               'clientOptions' => [

                                   'changeYear'  => true,

                                   'yearRange'   => 'c-20:c',

                                   'changeMonth' => true,

                               ],

                           ]); ?>

eb7e82fb   Administrator   29.02.16
47
48
49
50
51
              </div>

          </div>

  

          <div class="input-blocks-wrapper">

              <div class="input-blocks">

4b85f536   Yarik   test
52
53
54
55
56
57
58
59
60
61
62
63
                  <?= $form->field($model, '[' . $index . ']date_end')

                           ->label('Дата окончания работы')

                           ->widget(DatePicker::className(), [

                               'options'       => [ 'class' => 'custom-input-2' ],

                               'language'      => 'ru',

                               'dateFormat'    => 'dd-MM-yyyy',

                               'clientOptions' => [

                                   'changeYear'  => true,

                                   'yearRange'   => 'c-20:c',

                                   'changeMonth' => true,

                               ],

                           ]); ?>

eb7e82fb   Administrator   29.02.16
64
65
66
67
68
              </div>

          </div>

  

          <div class="input-blocks-wrapper">

              <div class="input-blocks">

4b85f536   Yarik   test
69
70
71
                  <?= $form->field($model, '[' . $index . ']position')

                           ->label('Должность')

                           ->textInput([ 'class' => 'custom-input-2' ]); ?>

eb7e82fb   Administrator   29.02.16
72
73
74
75
76
              </div>

          </div>

  

          <div class="input-blocks-wrapper admin-quantity-project">

              <div class="input-blocks">

4b85f536   Yarik   test
77
78
79
80
81
82
                  <?= $form->field($model, '[' . $index . ']total_count')

                           ->label('Количество проектов, в которых принимали участие')

                           ->textInput([

                               'class' => 'custom-input-2 custom-input-2-date',

                               'type'  => 'number',

                           ]); ?>

eb7e82fb   Administrator   29.02.16
83
84
  

                  <div class="fix-quantity-project">

5d627502   Yarik   test
85
                      <?= $form->field($model, '[' . $index . ']complete_count', [ 'enableClientValidation' => false ])

4b85f536   Yarik   test
86
87
                               ->label('из них реализовано')

                               ->textInput([

5d627502   Yarik   test
88
                                   'class' => 'custom-input-2 custom-input-2-date no-client-validation',

4b85f536   Yarik   test
89
90
                                   'type'  => 'number',

                               ]); ?>

eb7e82fb   Administrator   29.02.16
91
92
93
94
                  </div>

              </div>

          </div>

  

4b85f536   Yarik   test
95
96
97
98
          <?= Html::button('', [ 'class' => 'remove_job_button' ]); ?>

      </div>

  </div>

  <?php $form->end(); ?>