Blame view

frontend/views/accounts/service.php 3.2 KB
51e0a262   Yarik   test
1
  <?php
5f49082a   Yarik   test
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
      /**
       * @var UserInfo           $user_info
       * @var string[]           $specialization
       * @var integer[]          $user_specialization
       * @var UserSpecialization $user_specialization_input
       * @var string[]           $payment
       * @var integer[]          $user_payment
       * @var UserPayment $user_payment_input
       */
      use common\models\UserInfo;
      use common\models\UserPayment;
      use common\models\UserSpecialization;
      use yii\helpers\Html;
      use yii\widgets\ActiveForm;
  
51e0a262   Yarik   test
17
      $this->title = 'Мой профиль';
5f49082a   Yarik   test
18
19
20
      $this->params[ 'breadcrumbs' ][] = $this->title;
      $user_specialization_input->specialization_id = $user_specialization;
      $user_payment_input->payment_id = $user_payment;
51e0a262   Yarik   test
21
  ?>
51e0a262   Yarik   test
22
  <h1><?= $this->title ?></h1>
5f49082a   Yarik   test
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
  <p>Рекомендуем детально заполнить для исполнителя. Это сильно влияет на количество заказов.</p>
  <?php
      $form = ActiveForm::begin();
  ?>
  <?= $form->field($user_info, 'salary', [
      'template' => "{label}: от {input} за час\n{hint}\n{error}",
      'options'  => [ 'class' => 'form-inline' ],
  ])
           ->label('Стоимость работ')
           ->textInput() ?>
  <?= $form->field($user_specialization_input, 'specialization_id')
           ->label('Специализация услуг')
           ->checkboxList($specialization) ?>
  <?= $form->field($user_info, 'guarantee', [
      'template' => "{label}: {input} лет\n{hint}\n{error}",
      'options'  => [ 'class' => 'form-inline' ],
  ])
           ->label('Гарантия качества работ')
           ->textInput() ?>
  <?= $form->field($user_info, 'contract', [ 'options' => [ 'class' => 'form-inline' ] ])
           ->label('Работа по договору')
           ->radioList([
               0 => 'Да',
               1 => 'Нет',
           ], [ 'class' => 'form-control-static' ]) ?>
  <?= $form->field($user_info, 'estimate', [ 'options' => [ 'class' => 'form-inline' ] ])
           ->label('Предоставляете смету')
           ->radioList([
               0 => 'Да',
               1 => 'Нет',
           ], [ 'class' => 'form-control-static' ]) ?>
  <?= $form->field($user_info, 'purchase', [ 'options' => [ 'class' => 'form-inline' ] ])
           ->label('Делаете сами закупку материалов')
           ->radioList([
               0 => 'Да',
               1 => 'Нет',
           ], [ 'class' => 'form-control-static' ]) ?>
  <?= $form->field($user_info, 'delivery', [ 'options' => [ 'class' => 'form-inline' ] ])
           ->label('Занимаетесь сами доставкой материалов')
           ->radioList([
               0 => 'Да',
               1 => 'Нет',
           ], [ 'class' => 'form-control-static' ]) ?>
  <?= $form->field($user_info, 'prepayment', [
      'template' => "{label}: {input} %\n{hint}\n{error}",
      'options'  => [ 'class' => 'form-inline' ],
  ])
           ->label('Минимальная предоплата за работы')
           ->textInput() ?>
  <?= $form->field($user_payment_input, 'payment_id')
           ->label('Способы оплаты')
           ->checkboxList($payment) ?>
  <?= Html::submitButton('Обновить') ?>
  <?php
      $form->end();
  ?>