Blame view

frontend/views/accounts/_job_form.php 1.69 KB
e9013fc3   Yarik   test
1
  <?php
ccab742d   Виталий   tokar commit
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;
e9013fc3   Yarik   test
9
  
ccab742d   Виталий   tokar commit
10
11
  $model = new Job(['user_id' => \Yii::$app->user->getId (), 'current' => 0]);
  $form = ActiveForm::begin ();
e9013fc3   Yarik   test
12
  ?>
ccab742d   Виталий   tokar commit
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
  <div class='ajax-loaded'><div class='prev_job_inputs'>
          <?= $form->field ($model, '[' . $index . ']name')
              ->label ('Название')
              ->textInput ();
          ?>
          <?= $form->field ($model, '[' . $index . ']link')
              ->label ('Ссылка на компанию на сайте МФП')
              ->textInput ();
          ?>
          <?= $form->field ($model, '[' . $index . ']date_start')
              ->label ('Дата начала работы')
              ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']);
          ?>
          <?= $form->field ($model, '[' . $index . ']date_end')
              ->label ('Дата окончания работы')
              ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']);
          ?>
          <?= $form->field ($model, '[' . $index . ']position')
              ->label ('Должность')
              ->textInput ();
          ?>
          <?= $form->field ($model, '[' . $index . ']total_count')
              ->label ('Количество проектов, в которых принимали участие')
              ->input ('number');
          ?>
          <?= $form->field ($model, '[' . $index . ']complete_count')
              ->label ('из них реализовано')
              ->input ('number');
          ?>
          <?= Html::button('', ['class' => 'remove_job_button']);?>
      </div></div>
  <?php $form->end (); ?>