Пример #1
0
?>
    <?php 
echo FormDecorator::textField($model, 'last_name', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>
    <?php 
echo FormDecorator::textField($model, 'email', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>
    <?php 
echo FormDecorator::textField($model, 'password', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>

    <?php 
echo FormDecorator::dropDownList($model, 'sex', User::getSexOptions(), array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>
    <?php 
echo FormDecorator::dropDownList($model, 'marital_id', MaritalStatus::getOptions(), array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>

    <?php 
echo FormDecorator::textField($model, 'country', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>
    <?php 
echo FormDecorator::textField($model, 'city', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>
    <?php 
echo FormDecorator::textField($model, 'languages', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>
    <?php 
echo FormDecorator::textField($model, 'contacts', array('onclick' => 'backendController.removeErrorHighlighting( this )'));
?>
    <?php 
Пример #2
0
 /**
  * @return array with filters for templated ListGrid widget
  */
 public static function getUsersFiltersForListGrid()
 {
     return array('id' => '', 'first_name' => '', 'email' => '', 'sex' => self::getSexOptions(), 'marital_id' => MaritalStatus::getOptions('Сімейни стан'), 'is_banned' => self::getBannedOptions());
 }
 public function actionSettings()
 {
     $this->pageTitle .= ' - Туристичні знайомства - Налаштування';
     $this->breadcrumbs = array('Головна' => $this->createUrl('site/index'), 'Туристичні знайомства' => $this->createUrl('index'), 'Налаштування');
     $this->render('settings', array('changePasswordForm' => new ChangePasswordForm(), 'changePasswordAction' => $this->createUrl('ChangePasswordHandler'), 'userModel' => Yii::app()->user->getModel(), 'updateProfileAction' => $this->createUrl('UpdateProfileHandler'), 'maritalStatuses' => MaritalStatus::getOptions('Ваш сімейний стан'), 'sexOptions' => User::getSexOptions()));
 }