3 <?php echo CHtml::beginForm(
'',
'post',array(
4 'enctype'=>
'multipart/form-data',
5 'id'=>
'user-update')); ?>
7 <p
class=
"note"><?php echo
UserModule::t(
'Fields with <span class="required">*</span> are required.'); ?></p>
9 <?php echo CHtml::errorSummary(array($model,$profile)); ?>
12 <?php echo CHtml::activeLabelEx($model,
'username'); ?>
13 <?php echo CHtml::activeTextField($model,
'username',array(
'size'=>20,
'maxlength'=>20)); ?>
14 <?php echo CHtml::error($model,
'username'); ?>
18 <?php echo CHtml::activeLabelEx($model,
'password'); ?>
19 <?php echo CHtml::activePasswordField($model,
'password',array(
'size'=>60,
'maxlength'=>128)); ?>
20 <?php echo CHtml::error($model,
'password'); ?>
24 <?php echo CHtml::activeLabelEx($model,
'email'); ?>
25 <?php echo CHtml::activeTextField($model,
'email',array(
'size'=>60,
'maxlength'=>128)); ?>
26 <?php echo CHtml::error($model,
'email'); ?>
29 <!-- <div
class=
"row">-->
36 <?php echo CHtml::activeLabelEx($model,
'status'); ?>
37 <?php echo CHtml::activeDropDownList($model,
'status',User::itemAlias(
'UserStatus')); ?>
38 <?php echo CHtml::error($model,
'status'); ?>
41 $profileFields=$profile->getFields();
43 foreach($profileFields as $field) {
46 <?php echo CHtml::activeLabelEx($profile,$field->varname); ?>
48 if ($field->widgetEdit($profile)) {
49 echo $field->widgetEdit($profile);
50 } elseif ($field->range) {
51 $pos = strpos($field->range,
'-');
53 echo CHtml::activeDropDownList($profile,$field->varname,Profile::range($field->range));
55 $tag = substr($field->range, 0, $pos);
58 $field->range = substr($field->range, $pos+1);
60 echo CHtml::activeCheckBox($profile,$field->varname, Array(
'uncheckValue'=>
""));
63 $field->range = substr($field->range, $pos+1);
64 echo CHtml::activeRadioButtonList($profile,$field->varname,Profile::range($field->range), array(
'labelOptions'=>Array(
'class'=>
'inline_label')));
67 $field->range = substr($field->range, $pos+1);
68 echo CHtml::activeDropDownList($profile,$field->varname,Profile::range($field->range));
71 echo CHtml::activeDropDownList($profile,$field->varname,Profile::range($field->range));
75 } elseif ($field->field_type==
"TEXT") {
76 echo CHtml::activeTextArea($profile,$field->varname,array(
'rows'=>6,
'cols'=>50));
78 echo CHtml::activeTextField($profile,$field->varname,array(
'size'=>60,
'maxlength'=>(($field->field_size)?$field->field_size:255)));
81 <?php echo CHtml::error($profile,$field->varname); ?>
87 <div
class=
"row buttons">
88 <?php echo CHtml::submitButton($model->isNewRecord ?
'Create' :
'Save'); ?>
91 <?php echo CHtml::endForm(); ?>