<div class="review-form-wrapper mb-5" id="write-review">
                                                    <h3 class="title tab-pane-title font-weight-bold mb-1">Submit Your
                                                        Review</h3>
                                                    <p class="mb-3">Your email address will not be published. Required
                                                        fields are marked *</p>
                                                        <?php
					$form = $this->beginWidget('CActiveForm', array(
					'enableAjaxValidation'=>true,
					'clientOptions'=>array(
					'validateOnSubmit'=>true,
					'validateOnChange'=>false,
					),
					'htmlOptions'=>array('autocomplete'=>'on','class'=>'review-form')
					));
					?>
                                                    <div class="rating-form">
                                                            <label for="rating">Your Rating Of This Product :</label>
                                                            <span class="rating-stars selected">
                                                                <a class="star-1" href="#">1</a>
                                                                <a class="star-2" href="#">2</a>
                                                                <a class="star-3 active" href="#">3</a>
                                                                <a class="star-4" href="#">4</a>
                                                                <a class="star-5" href="#">5</a>
                                                            </span>
                                                             <?php
                                                               $reviewmodel->rating = empty($reviewmodel->rating) ?  3  : $reviewmodel->rating;
                                                               $reviewmodel->product_id =  $model->primaryKey;
                                                              echo $form->dropDownList($reviewmodel, 'rating',$reviewmodel->getVendorReviewValues(),$reviewmodel->getHtmlOptions('rating',array('placeholder'=>'','empty'=>'Please Select','style'=>'display:none;'))); ?>
															<?php echo $form->error($reviewmodel, 'rating');?>
                                                          
                                                        </div>
                                                        <?php echo $form->textArea($reviewmodel, 'comment',$reviewmodel->getHtmlOptions('comment',array( 'rows'=>'6','cols'=>'30','placeholder'=>'Write Your Review Here...*'))); ?>
														<?php echo $form->error($reviewmodel, 'comment');?>
                       
                                                        <div class="row gutter-md">
                                                            <div class="col-md-6">

															<?php echo $form->textField($reviewmodel, 'name',$reviewmodel->getHtmlOptions('name',array('placeholder'=>'Your Name*'))); ?>
															<?php echo $form->error($reviewmodel, 'name');?>
                                                            </div>
                                                            <div class="col-md-6">
                                                               
															<?php echo $form->emailField($reviewmodel, 'email',$reviewmodel->getHtmlOptions('email',array('placeholder'=>'Your Eamil*'))); ?>
															<?php echo $form->hiddenField($reviewmodel, 'product_id'); ?>
															<?php echo $form->error($reviewmodel, 'product_id');?>
															<?php echo $form->error($reviewmodel, 'email');?>

                                                            </div>
                                                        </div>
                                                        <div class="form-group" style="display:none">
                                                            <input type="checkbox" class="custom-checkbox" id="save-checkbox">
                                                            <label for="save-checkbox">Save my name, email, and website
                                                                in this browser for the next time I comment.</label>
                                                        </div>
                                                        <button type="submit" class="btn btn-dark">Submit
                                                            Review</button>
                                                    <?php $this->endWidget();?>
                                                </div>
                                     
