Commit e5a10d895b42b4e0d3f5c4786866d7832dd0155d
1 parent
ca764699
contacts
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
frontend/controllers/SiteController.php
@@ -62,7 +62,7 @@ | @@ -62,7 +62,7 @@ | ||
62 | */ | 62 | */ |
63 | public function actionContact() | 63 | public function actionContact() |
64 | { | 64 | { |
65 | - $contact = new Feedback(); | 65 | + $contact = new Feedback(['scenario'=>Feedback::SCENARIO_WRITE_US]); |
66 | return $this->render( | 66 | return $this->render( |
67 | 'contact', | 67 | 'contact', |
68 | [ | 68 | [ |
frontend/views/site/contact.php
@@ -154,6 +154,9 @@ JS; | @@ -154,6 +154,9 @@ JS; | ||
154 | ] | 154 | ] |
155 | ); ?> | 155 | ); ?> |
156 | <div class="row"> | 156 | <div class="row"> |
157 | + | ||
158 | + <?= Html::hiddenInput('type', 'write_us');?> | ||
159 | + | ||
157 | <div class="col-sm-12"> | 160 | <div class="col-sm-12"> |
158 | <?= $form->field($contact, 'name') | 161 | <?= $form->field($contact, 'name') |
159 | ->textInput() | 162 | ->textInput() |