<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;
use yii\jui\Dialog;

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\ContactForm */

?>

 <?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 $form->field($model, 'name');
 echo $form->field($model, 'email');
 echo $form->field($model, 'subject');
 echo $form->field($model, 'body')->textArea(['rows' => 6]);
 echo Html::hiddenInput('FeedbackForm[currentURL]',$current);
 echo $form->field($model, 'verifyCode' )->widget ( Captcha::className (), [ 'template' => '<div class="row"> 		
<div class="col-lg-3">{image}</div> <div class="col-lg-3">{input}</div> </div>' ] );
 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();
?>