diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-04-19 16:18:33 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-04-19 16:18:33 +0200 |
| commit | 12c8482bf883988c0fc5ed4c8972396af63e8258 (patch) | |
| tree | b11a2e90f560b04bf5757e6fedce3fb3a6185f74 /protected/views/site/contact.php | |
| parent | e41aefeea38a7d13690ca97e91368809343216aa (diff) | |
Grundlegendes zu Forms
Diffstat (limited to '')
| -rw-r--r-- | protected/views/site/contact.php | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/protected/views/site/contact.php b/protected/views/site/contact.php index 51f90a9..a64fe4a 100644 --- a/protected/views/site/contact.php +++ b/protected/views/site/contact.php @@ -19,46 +19,47 @@ $this->breadcrumbs=array( If you have business inquiries or other questions, please fill out the following form to contact us. Thank you. </p> -<div class="form"> - -<?php $form=$this->beginWidget('CActiveForm', array( +<div> +<?php + CHtml::$requiredCss='ym-required'; + CHTML::$errorCss='ym-error'; + $form=$this->beginWidget('CActiveForm', array( 'id'=>'contact-form', 'enableClientValidation'=>true, 'clientOptions'=>array( 'validateOnSubmit'=>true, ), )); ?> - - <p class="note">Fields with <span class="required">*</span> are required.</p> + <p class="note">Fields with <span class="ym-required">*</span> are required.</p> <?php echo $form->errorSummary($model); ?> - <div class="row"> + <div class="ym-fbox-text"> <?php echo $form->labelEx($model,'name'); ?> <?php echo $form->textField($model,'name'); ?> <?php echo $form->error($model,'name'); ?> </div> - <div class="row"> + <div class="ym-fbox-text"> <?php echo $form->labelEx($model,'email'); ?> <?php echo $form->textField($model,'email'); ?> <?php echo $form->error($model,'email'); ?> </div> - <div class="row"> + <div class="ym-fbox-text"> <?php echo $form->labelEx($model,'subject'); ?> <?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?> <?php echo $form->error($model,'subject'); ?> </div> - <div class="row"> + <div class="ym-fbox-text"> <?php echo $form->labelEx($model,'body'); ?> <?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?> <?php echo $form->error($model,'body'); ?> </div> <?php if(CCaptcha::checkRequirements()): ?> - <div class="row"> + <div class="ym-fbox-text"> <?php echo $form->labelEx($model,'verifyCode'); ?> <div> <?php $this->widget('CCaptcha'); ?> @@ -70,8 +71,8 @@ If you have business inquiries or other questions, please fill out the following </div> <?php endif; ?> - <div class="row buttons"> - <?php echo CHtml::submitButton('Submit'); ?> + <div class="ym-fbox-button"> + <?php echo CHtml::submitButton('Submit',array('class'=>'ym-button ym-add')); ?> </div> <?php $this->endWidget(); ?> |
