7 array(
'label' =>
UserModule::t(
'Profile'),
'url' => array(
'/user/profile')),
8 array(
'label' =>
UserModule::t(
'Change password'),
'url' => array(
'changepassword')),
9 array(
'label' =>
UserModule::t(
'Logout'),
'url' => array(
'/user/logout')),
13 <?php
if (Yii::app()->user->hasFlash(
'profileMessage')): ?>
15 <?php echo Yii::app()->user->getFlash(
'profileMessage'); ?>
19 <?php
$form = $this->beginWidget(
'CActiveForm', array(
20 'id' =>
'profile-form',
21 'enableAjaxValidation' =>
true,
22 'htmlOptions' => array(
'enctype' =>
'multipart/form-data'),
25 <p
class=
"note"><?php echo
UserModule::t(
'Fields with <span class="required">*</span> are required.'); ?></p>
27 <?php echo $form->errorSummary(array($model, $profile)); ?>
35 <?php echo $form->labelEx($profile, $field->varname);
37 if ($widgetEdit = $field->widgetEdit($profile)) {
39 } elseif ($field->range) {
40 echo $form->dropDownList($profile, $field->varname,
Profile::range($field->range));
41 } elseif ($field->field_type ==
"TEXT") {
42 echo $form->textArea($profile, $field->varname, array(
'rows' => 6,
'cols' => 50));
44 echo $form->textField($profile, $field->varname, array(
'size' => 60,
'maxlength' => (($field->field_size) ? $field->field_size : 255)));
46 echo $form->error($profile, $field->varname);
55 <?php echo $form->labelEx($model,
'username'); ?>
56 <?php echo $form->textField($model,
'username', array(
'size' => 20,
'maxlength' => 20)); ?>
57 <?php echo $form->error($model,
'username'); ?>
61 <?php echo $form->labelEx($model,
'email'); ?>
62 <?php echo $form->textField($model,
'email', array(
'size' => 60,
'maxlength' => 128)); ?>
63 <?php echo $form->error($model,
'email'); ?>
66 <div
class=
"row buttons">
70 <?php $this->endWidget(); ?>