Last active
September 28, 2015 10:38
-
-
Save jamband/1426212 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $this->pageTitle = Yii::app()->name . ' - Contact Us'; ?> | |
<?php $this->breadcrumbs = array('Contact'); ?> | |
<div class="page-header"> | |
<h3> | |
お問い合わせ | |
<small>以下のフォームにご記入の上、送信してください</small> | |
</h3> | |
</div><!-- /.page-header --> | |
<?php if (Yii::app()->user->hasFlash('contact')): ?> | |
<div class="flash-success"> | |
<?php echo Yii::app()->user->getFlash('contact'); ?> | |
</div><!-- /.flash-success --> | |
<?php else: ?> | |
<div class="form-stacked"> | |
<?php $form = $this->beginWidget('ext.bootstrap.widgets.BootActiveForm', array( | |
'id' => 'contact-form', | |
'enableClientValidation' => true, | |
'clientOptions' => array( | |
'validateOnSubmit' => true, | |
), | |
)); ?> | |
<?php echo $form->textFieldBlock($model, 'name'); ?> | |
<?php echo $form->textFieldBlock($model, 'email'); ?> | |
<?php echo $form->textFieldBlock($model, 'subject', array('size' => 60, 'maxlength' => 128)); ?> | |
<?php echo $form->textAreaBlock($model, 'body', array('row' => 6, 'cols' => 50)); ?> | |
<?php if (CCaptcha::checkRequirements()): ?> | |
<?php $this->widget('CCaptcha'); ?> | |
<?php echo $form->textFieldBlock($model, 'verifyCode'); ?> | |
<span class="help-block"> | |
上の画像に表示されている文字を入力してください。大文字、小文字は問いません | |
</span><!-- /.help-block --> | |
<?php endif; ?> | |
<div class="actions"> | |
<?php echo CHtml::submitButton('送信する', array('class' => 'btn primary')); ?> | |
</div><!-- /.action --> | |
<?php $this->endWidget(); ?> | |
</div><!-- ./form-stacked --> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment