You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					47 lines
				
				1.5 KiB
			
		
		
			
		
	
	
					47 lines
				
				1.5 KiB
			| 
											13 years ago
										 | <?php
 | ||
|  | use yii\helpers\Html;
 | ||
| 
											13 years ago
										 | use yii\widgets\ActiveForm;
 | ||
| 
											13 years ago
										 | use yii\widgets\Captcha;
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | /**
 | ||
|  |  * @var yii\base\View $this
 | ||
|  |  * @var yii\widgets\ActiveForm $form
 | ||
|  |  * @var app\models\ContactForm $model
 | ||
|  |  */
 | ||
|  | $this->title = 'Contact';
 | ||
| 
											13 years ago
										 | $this->params['breadcrumbs'][] = $this->title;
 | ||
| 
											13 years ago
										 | ?>
 | ||
|  | <h1><?php echo Html::encode($this->title); ?></h1>
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | <?php if (Yii::$app->session->hasFlash('contactFormSubmitted')): ?>
 | ||
| 
											13 years ago
										 | <div class="alert alert-success">
 | ||
|  | 	Thank you for contacting us. We will respond to you as soon as possible.
 | ||
|  | </div>
 | ||
|  | <?php return; endif; ?>
 | ||
|  | 
 | ||
|  | <p>
 | ||
|  | 	If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
 | ||
|  | </p>
 | ||
| 
											13 years ago
										 | 
 | ||
| 
											13 years ago
										 | <?php $form = ActiveForm::begin(array(
 | ||
| 
											13 years ago
										 | 	'options' => array('class' => 'form-horizontal'),
 | ||
|  | 	'fieldConfig' => array('inputOptions' => array('class' => 'input-xlarge')),
 | ||
|  | )); ?>
 | ||
|  | 	<?php echo $form->field($model, 'name')->textInput(); ?>
 | ||
|  | 	<?php echo $form->field($model, 'email')->textInput(); ?>
 | ||
|  | 	<?php echo $form->field($model, 'subject')->textInput(); ?>
 | ||
|  | 	<?php echo $form->field($model, 'body')->textArea(array('rows' => 6)); ?>
 | ||
| 
											13 years ago
										 | 	<?php
 | ||
|  | 		$field = $form->field($model, 'verifyCode');
 | ||
| 
											13 years ago
										 | 		echo $field->begin()
 | ||
|  | 			. $field->label()
 | ||
| 
											13 years ago
										 | 			. Captcha::widget()
 | ||
| 
											13 years ago
										 | 			. Html::activeTextInput($model, 'verifyCode', array('class' => 'input-medium'))
 | ||
|  | 			. $field->error()
 | ||
|  | 			. $field->end();
 | ||
| 
											13 years ago
										 | 	?>
 | ||
| 
											13 years ago
										 | 	<div class="form-actions">
 | ||
|  | 		<?php echo Html::submitButton('Submit', null, null, array('class' => 'btn btn-primary')); ?>
 | ||
| 
											13 years ago
										 | 	</div>
 | ||
| 
											13 years ago
										 | <?php ActiveForm::end(); ?>
 |