Commit 3ead6bc30436d5a85b06bb020f49036ebc4c7e48

Authored by Anastasia
1 parent e2c13a52

add name to feedback

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