<?php use yii\helpers\Html; use yii\bootstrap\ActiveForm; use yii\captcha\Captcha; use yii\jui\Dialog; use common\models\FeedbackForm; ?> <?php Dialog::begin([ 'clientOptions' => [ 'modal' => true, 'title'=>"GGBN Portal Feedback", 'width'=>"800px", 'id'=>'feedbackdiv', 'class'=> "feedbackclass" ],'id'=>'feedbackdiv','class'=> "feedbackclass" ]); echo "Please provide your feedback below:"; $form = ActiveForm::begin(['id' => 'feedback-form', 'method' =>'post','action' => ['site/feedback'],]); echo '<input type="text" id="website" name="website"/>'; //if empty -> no spam echo $form->field($model, 'name'); echo $form->field($model, 'email'); echo $form->field($model, 'subject'); echo $form->field($model, 'body')->textArea(['rows' => 6]); if(!isset($current)) $current=""; echo Html::hiddenInput('FeedbackForm[currentURL]',$current); echo $form->field($model, 'verifyCode')->widget(common\models\CaptchaRefreshable::className()); echo' <div class="form-group">'; echo Html::submitButton('Submit', ['class' => 'btn btn-primary', 'name' => 'feedback-button']); echo Html::button('Cancel', ['class' => 'btn btn-primary', 'name' => 'feedback-button', 'id'=>'cancel-button']); echo' </div>'; ActiveForm::end(); Dialog::end(); ?>