Blame view

frontend/views/accounts/_projects_form.php 2.19 KB
aa182b5c   Yarik   test
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
79
80
81
82
83
  <?php
      /**
       * @var Project $project
       * @var Specialization[] $specialization
       * @var Payment[] $payment
       * @var string[] $projects
       */
      use common\models\Payment;
      use common\models\Project;
      use common\models\Specialization;
      use common\widgets\ImageUploader;
      use mihaildev\ckeditor\CKEditor;
      use yii\helpers\Html;
      use yii\widgets\ActiveForm;
  
      $this->title = 'Мой профиль';
      $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <h1><?= $this->title ?></h1>
  
  <?php
      $form = ActiveForm::begin();
  ?>
  
  <?= $form->field($project, 'name')
           ->textInput() ?>
  
  <?= $form->field($project, 'link')
           ->textInput() ?>
  
  <?= $form->field($project, 'project_pid')
           ->dropDownList($projects) ?>
  
  <?= $form->field($project, 'specializationInput')
           ->checkboxList($specialization) ?>
  
  <div class="form-inline">
      Адрес:
      <?= $form->field($project, 'city', [ 'template' => "{label}{input}{hint}{error}" ])
               ->textInput() ?>
      <?= $form->field($project, 'street', [ 'template' => "{label}{input}{hint}{error}" ])
               ->textInput() ?>
      <?= $form->field($project, 'house', [ 'template' => "{label}{input}{hint}{error}" ])
               ->textInput() ?>
  </div>
  
  <?= $form->field($project, 'budget')
           ->textInput() ?>
  
  <?= $form->field($project, 'contractual')
           ->checkbox() ?>
  
  <?= $form->field($project, 'payment_variant')
           ->radioList([
               1 => 'Без предоплаты',
               2 => 'Предоплата возможна',
           ]) ?>
  
  <?= $form->field($project, 'paymentInput')
           ->checkboxList($payment) ?>
  
  <?= $form->field($project, 'deadline', [ 'template' => "{label}{input} дней\n{hint}\n{error}" ])
           ->input('number') ?>
  
  <?= $form->field($project, 'description')
           ->widget(CKEditor::className()) ?>
  
  <?= $form->field($project, 'file')
           ->fileInput([ 'multiple' => 'multiple' ]) ?>
  
  <?= $form->field($project, 'date_end')
           ->dropDownList([
               'День',
               'Неделю',
               'Месяц',
               'Год',
           ]) ?>
  
  <?= Html::submitButton('Добавить') ?>
  
  <?php
      $form->end();
  ?>