Пример #1
0
echo $form->error($model, 'occupation');
?>
        </div>

        <div class="in-row clearfix">
            <?php 
echo $form->textField($model, 'phone', array('class' => 'text', 'placeholder' => 'Contact No'));
?>
            <?php 
echo $form->error($model, 'phone');
?>
        </div>

        <div class="in-row clearfix">
            <?php 
echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('empty' => 'Country'));
?>
            <?php 
echo $form->error($model, 'country_id');
?>
        </div>
        
        <div class="in-row clearfix">
            <?php 
// echo $form->labelEx($model, 'remark', array('class' => 'lb'));
?>
            <?php 
echo $form->textArea($model, 'remark', array('rows' => 1, 'class' => 'text', 'maxlength' => 600, 'placeholder' => 'Remark'));
?>
        </div>
        
Пример #2
0
	<div class="row">
		<?php 
echo $form->label($model, 'title', array('label' => Yii::t('translation', 'Title')));
?>
		<?php 
echo $form->textField($model, 'title', array('size' => 60, 'maxlength' => 255));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'country_id', array('label' => Yii::t('translation', 'Country')));
?>
		<?php 
echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('prompt' => 'Select a country', 'options' => array(DEFAULT_AREA_CODE => array('selected' => true))));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'department', array('label' => Yii::t('translation', 'Department')));
?>
		<?php 
echo $form->textField($model, 'department', array('size' => 60, 'maxlength' => 255));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'posted', array('label' => Yii::t('translation', 'Posted')));
Пример #3
0
echo $form->error($model, 'email');
?>
    </div>

    <div class="form-group">
        <?php 
echo $form->textField($model, 'phone', array('class' => 'form-control number_only', 'placeholder' => 'Contact No'));
?>
        <?php 
echo $form->error($model, 'phone');
?>
    </div>

    <div class="form-group">
        <?php 
echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('empty' => 'Select Country', 'class' => 'form-control'));
?>
        <?php 
echo $form->error($model, 'country_id');
?>
    </div>

    <div class="form-group">
        <?php 
echo $form->textArea($model, 'description', array('class' => 'note-box-2 form-control', 'placeholder' => 'Message', 'rows' => 4));
?>
         <?php 
echo $form->error($model, 'description');
?>
    </div>
Пример #4
0
                    </div>
                </div>
                <div class="in-row clearfix">
                    <label class="lb">Country <span class="require">*</span> :</label>
                    <div class="group-4">
                        <?php 
if ($model->country_id) {
    ?>
                            <?php 
    echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('style' => 'width:244px;', 'class' => 'text'));
    ?>
                        <?php 
} else {
    ?>
                            <?php 
    echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('options' => array(DEFAULT_AREA_CODE => array('selected' => true)), 'style' => 'width:244px;', 'class' => 'text'));
    ?>
                        <?php 
}
?>
                        <?php 
echo $form->error($model, 'country_id');
?>
                    </div>
                </div>
                <div class="in-row clearfix">
                    <label class="lb">Address :</label>
                    <div class="group-4">
                        <?php 
echo $form->textArea($model, 'address', array('class' => 'text w-0', 'size' => 60, 'maxlength' => 255));
?>
Пример #5
0
echo $form->labelEx($model, 'shipping_address2');
?>
                            <?php 
echo $form->textField($model, 'shipping_address2', array('class' => 'in-text w-3'));
?>
                            <?php 
echo $form->error($model, 'shipping_address2');
?>
                        </div>
                    	<div class="row">
                            <div class="in-row-block">
                            <?php 
echo $form->labelEx($model, 'shipping_country_id');
?>
                            <?php 
echo $form->dropdownList($model, 'shipping_country_id', AreaCode::loadArrArea(), array('class' => 'w-1 space-1'));
?>
                            <?php 
echo $form->error($model, 'shipping_country_id');
?>
                            </div>
                            <div class="in-row-block">
                            <?php 
echo $form->labelEx($model, 'shipping_city', array('class' => 'no-w'));
?>
                            <?php 
echo $form->textField($model, 'shipping_city', array('class' => 'in-text w-5 space-1'));
?>
                            <?php 
echo $form->error($model, 'shipping_city');
?>