Commit f8f0b4052c126b103c21af3960bafb698e152cc0

Authored by Alexey Boroda
1 parent b4423d52

-Orders second name added

Showing 2 changed files with 5 additions and 0 deletions   Show diff stats
models/Order.php
... ... @@ -80,6 +80,7 @@
80 80 'city',
81 81 'address',
82 82 'comment',
  83 + 'secondname',
83 84 ],
84 85 'string',
85 86 'max' => 255,
... ... @@ -135,6 +136,7 @@
135 136 'created_at' => Yii::t('order', 'Created At'),
136 137 'updated_at' => Yii::t('order', 'Updated At'),
137 138 'deleted_at' => Yii::t('order', 'Deleted At'),
  139 + 'secondname' => \Yii::t('order', 'Фамилия'),
138 140 ];
139 141 }
140 142  
... ...
views/order/_form.php
... ... @@ -30,6 +30,9 @@
30 30 <?= $form->field($model, 'name')
31 31 ->textInput([ 'maxlength' => true ]) ?>
32 32  
  33 + <?= $form->field($model, 'secondname')
  34 + ->textInput([ 'maxlength' => true ]) ?>
  35 +
33 36 <?= $form->field($model, 'phone')
34 37 ->textInput([ 'maxlength' => true ]) ?>
35 38  
... ...