Пример #1
0
                        </div>
                </div>
        </div>
        <div class="col-md-6">
                <div class="panel panel-default">
                        <div class="panel-heading">
                                <h4 class="panel-title"><?php 
echo Lang::t('Geo Location');
?>
</h4>
                        </div>
                        <div class="panel-body">
                                <div class="form-group">
                                        <div class="col-md-10">
                                                <?php 
echo CHtml::activeDropDownList($model, 'country_id', SettingsCountry::model()->getListData('id', 'name', FALSE), array('class' => 'form-control'));
?>
                                        </div>
                                </div>
                                <div class="form-group">
                                        <div class="col-md-5">
                                                <?php 
echo CHtml::activeTextField($model, 'latitude', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('latitude'), 'readonly' => true));
?>
                                        </div>
                                        <div class="col-md-5">
                                                <?php 
echo CHtml::activeTextField($model, 'longitude', array('class' => 'form-control', 'placeholder' => $model->getAttributeLabel('longitude'), 'readonly' => true));
?>
                                        </div>
                                </div>
Пример #2
0
                <?php 
echo $form->labelEx($model, 'name', array('class' => 'col-lg-3 control-label'));
?>
                <div class="col-lg-9">
                        <?php 
echo $form->textField($model, 'name', array('class' => 'form-control', 'maxlength' => 60));
?>
                </div>
        </div>
        <div class="form-group">
                <?php 
echo $form->labelEx($model, 'country_id', array('class' => 'col-lg-3 control-label'));
?>
                <div class="col-lg-9">
                        <?php 
echo $form->dropDownList($model, 'country_id', SettingsCountry::model()->getListData('id', 'name'), array('class' => 'form-control'));
?>
                </div>
        </div>
        <div class="clearfix form-actions">
                <div class="col-lg-offset-3 col-lg-9">
                        <button class="btn btn-primary btn-sm" type="submit"><i class="icon-ok bigger-110"></i> <?php 
echo Lang::t($model->isNewRecord ? 'Create' : 'Save changes');
?>
</button>
                        &nbsp; &nbsp; &nbsp;
                        <button type="cancel" class="btn btn-sm">Cancel</button>
                </div>
        </div>
        <?php 
$this->endWidget();