Commit e5a10d895b42b4e0d3f5c4786866d7832dd0155d

Authored by Timur Kastemirov
1 parent ca764699

contacts

frontend/controllers/SiteController.php
... ... @@ -62,7 +62,7 @@
62 62 */
63 63 public function actionContact()
64 64 {
65   - $contact = new Feedback();
  65 + $contact = new Feedback(['scenario'=>Feedback::SCENARIO_WRITE_US]);
66 66 return $this->render(
67 67 'contact',
68 68 [
... ...
frontend/views/site/contact.php
... ... @@ -154,6 +154,9 @@ JS;
154 154 ]
155 155 ); ?>
156 156 <div class="row">
  157 +
  158 + <?= Html::hiddenInput('type', 'write_us');?>
  159 +
157 160 <div class="col-sm-12">
158 161 <?= $form->field($contact, 'name')
159 162 ->textInput()
... ...