Commit 3ead6bc30436d5a85b06bb020f49036ebc4c7e48

Authored by Anastasia
1 parent e2c13a52

add name to feedback

backend/controllers/VisitController.php
... ... @@ -46,7 +46,7 @@
46 46 'class' => Index::className(),
47 47 'columns' => [
48 48 'phone' => [
49   - 'type' => Index::STRING_COL
  49 + 'type' => Index::ACTION_COL
50 50 ],
51 51 'status' => [
52 52 'type' => Index::STATUS_COL,
... ...
backend/views/feedback/_form.php
... ... @@ -11,7 +11,8 @@
11 11 <div class="feedback-form">
12 12  
13 13 <?php $form = ActiveForm::begin(); ?>
14   -
  14 + <?= $form->field($model, 'name')
  15 + ->textInput([ 'maxlength' => true ]) ?>
15 16  
16 17 <?= $form->field($model, 'phone')
17 18 ->textInput([ 'maxlength' => true ]) ?>
... ...