7 $this->beginWidget(
'zii.widgets.CPortlet', array(
14 <?php
$form=$this->beginWidget(
'CActiveForm', array(
15 'id'=>
'personal-info-form',
16 'enableAjaxValidation'=>
false,
19 <p
class=
"note">Fields with <span
class=
"required">*</span> are required.</p>
21 <?php echo $form->errorSummary($model); ?>
23 <div
class=
"row-fluid">
27 <?php echo $form->labelEx($model,
'first_name'); ?>
28 <?php echo $form->textField($model,
'first_name',array(
'size'=>40,
'maxlength'=>40)); ?>
29 <?php echo $form->error($model,
'first_name'); ?>
33 <?php echo $form->labelEx($model,
'middle_name'); ?>
34 <?php echo $form->textField($model,
'middle_name',array(
'size'=>40,
'maxlength'=>40)); ?>
35 <?php echo $form->error($model,
'middle_name'); ?>
39 <?php echo $form->labelEx($model,
'last_name'); ?>
40 <?php echo $form->textField($model,
'last_name',array(
'size'=>40,
'maxlength'=>40)); ?>
41 <?php echo $form->error($model,
'last_name'); ?>
45 <?php echo $form->labelEx($model,
'dob'); ?>
46 <?php echo $form->textField($model,
'dob'); ?>
47 <?php echo $form->error($model,
'dob'); ?>
51 <?php echo $form->labelEx($model,
'gender'); ?>
52 <?php echo $form->dropDownList($model,
'gender',array(
'Male'=>
'Male',
'Female'=>
'Female')); ?>
53 <?php echo $form->error($model,
'gender'); ?>
57 <?php echo $form->labelEx($model,
'marital_status'); ?>
58 <?php echo $form->dropDownList($model,
'marital_status',array(
'Single'=>
'Single',
'Married'=>
'Married',
'Divorced'=>
'Divorced',
'Widowed'=>
'Widowed')); ?>
59 <?php echo $form->error($model,
'marital_status'); ?>
63 <?php echo $form->labelEx($model,
'smoker'); ?>
64 <?php echo $form->checkBox($model,
'smoker'); ?>
65 <?php echo $form->error($model,
'smoker'); ?>
69 <?php echo $form->labelEx($model,
'status'); ?>
70 <?php echo $form->dropDownList($model,
'status',array(
'Active'=>
'Active',
'Inactive'=>
'Inactive',
'Closed'=>
'Closed')); ?>
71 <?php echo $form->error($model,
'status'); ?>
75 <?php echo $form->labelEx($model,
'date_joined'); ?>
76 <?php echo $form->textField($model,
'date_joined',array(
'disabled'=>
'disabled')); ?>
77 <?php echo $form->error($model,
'date_joined'); ?>
81 <?php echo $form->labelEx($model,
'date_left'); ?>
82 <?php echo $form->textField($model,
'date_left'); ?>
83 <?php echo $form->error($model,
'date_left'); ?>
89 <div
class=
"row input-prepend">
90 <?php echo $form->labelEx($model,
'phone_home'); ?>
91 <span
class=
"add-on">+263</span>
92 <?php echo $form->textField($model,
'phone_home',array(
'size'=>30,
'maxlength'=>30)); ?>
93 <span
class=
"help-inline">Inline help text</span>
94 <?php echo $form->error($model,
'phone_home'); ?>
97 <div
class=
"row input-prepend">
98 <?php echo $form->labelEx($model,
'phone_work'); ?>
99 <span
class=
"add-on">+263</span>
100 <?php echo $form->textField($model,
'phone_work',array(
'size'=>30,
'maxlength'=>30)); ?>
101 <?php echo $form->error($model,
'phone_work'); ?>
104 <div
class=
"row input-prepend">
105 <?php echo $form->labelEx($model,
'phone_mobile'); ?>
106 <span
class=
"add-on">+263</span>
107 <?php echo $form->textField($model,
'phone_mobile',array(
'size'=>50,
'maxlength'=>50)); ?>
108 <?php echo $form->error($model,
'phone_mobile'); ?>
111 <div
class=
"row input-prepend">
112 <?php echo $form->labelEx($model,
'fax'); ?>
113 <span
class=
"add-on">+263</span>
114 <?php echo $form->textField($model,
'fax',array(
'size'=>50,
'maxlength'=>50)); ?>
115 <?php echo $form->error($model,
'fax'); ?>
118 <div
class=
"row input-append">
119 <?php echo $form->labelEx($model,
'email_primary'); ?>
120 <?php echo $form->textField($model,
'email_primary',array(
'size'=>50,
'maxlength'=>50)); ?>
121 <span
class=
"add-on">@google.com</span>
122 <?php echo $form->error($model,
'email_primary'); ?>
125 <div
class=
"row input-append">
126 <?php echo $form->labelEx($model,
'email_secondary'); ?>
127 <?php echo $form->textField($model,
'email_secondary',array(
'size'=>50,
'maxlength'=>50)); ?>
128 <span
class=
"add-on">@hotmail.com</span>
129 <?php echo $form->error($model,
'email_secondary'); ?>
133 <?php echo $form->labelEx($model,
'address_1'); ?>
134 <?php echo $form->textField($model,
'address_1',array(
'size'=>50,
'maxlength'=>50)); ?>
135 <?php echo $form->error($model,
'address_1'); ?>
139 <?php echo $form->labelEx($model,
'address_2'); ?>
140 <?php echo $form->textField($model,
'address_2',array(
'size'=>50,
'maxlength'=>50)); ?>
141 <?php echo $form->error($model,
'address_2'); ?>
145 <?php echo $form->labelEx($model,
'address_3'); ?>
146 <?php echo $form->textField($model,
'address_3',array(
'size'=>50,
'maxlength'=>50)); ?>
147 <?php echo $form->error($model,
'address_3'); ?>
151 <?php echo $form->labelEx($model,
'country'); ?>
152 <?php echo $form->textField($model,
'country',array(
'size'=>30,
'maxlength'=>30)); ?>
153 <?php echo $form->error($model,
'country'); ?>
160 <div
class=
"row-fluid">
163 <?php echo $form->labelEx($model,
'national_id'); ?>
164 <?php echo $form->textField($model,
'national_id',array(
'size'=>50,
'maxlength'=>50)); ?>
165 <?php echo $form->error($model,
'national_id'); ?>
169 <?php echo $form->labelEx($model,
'passport_number'); ?>
170 <?php echo $form->textField($model,
'passport_number',array(
'size'=>50,
'maxlength'=>50)); ?>
171 <?php echo $form->error($model,
'passport_number'); ?>
175 <?php echo $form->labelEx($model,
'drivers_license'); ?>
176 <?php echo $form->textField($model,
'drivers_license',array(
'size'=>50,
'maxlength'=>50)); ?>
177 <?php echo $form->error($model,
'drivers_license'); ?>
181 <?php echo $form->labelEx($model,
'other_id'); ?>
182 <?php echo $form->textField($model,
'other_id',array(
'size'=>50,
'maxlength'=>50)); ?>
183 <?php echo $form->error($model,
'other_id'); ?>
187 <?php echo $form->labelEx($model,
'other_id_2'); ?>
188 <?php echo $form->textField($model,
'other_id_2',array(
'size'=>50,
'maxlength'=>50)); ?>
189 <?php echo $form->error($model,
'other_id_2'); ?>
194 <?php echo $form->labelEx($model,
'nationality'); ?>
195 <?php echo $form->textField($model,
'nationality',array(
'size'=>50,
'maxlength'=>50)); ?>
196 <?php echo $form->error($model,
'nationality'); ?>
200 <?php echo $form->labelEx($model,
'ethnic_race'); ?>
201 <?php echo $form->textField($model,
'ethnic_race',array(
'size'=>20,
'maxlength'=>20)); ?>
202 <?php echo $form->error($model,
'ethnic_race'); ?>
208 <div
class=
"row buttons">
209 <?php echo CHtml::submitButton($model->isNewRecord ?
'Create' :
'Save',array(
'class'=>
'btn btn-primary')); ?>
211 <?php $this->endWidget();?>
216 <?php $this->endWidget(); ?> <!-- portlet -->