HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
_form.php
Go to the documentation of this file.
1 <?php
2 /* @var $this CustomerController */
3 /* @var $model PersonalInfo */
4 /* @var $form CActiveForm */
5 ?>
6 <?php
7  $this->beginWidget('zii.widgets.CPortlet', array(
8  'title'=>"Header Tag",
9  ));
10 
11 ?>
12 <div class="form">
13 
14 <?php $form=$this->beginWidget('CActiveForm', array(
15  'id'=>'personal-info-form',
16  'enableAjaxValidation'=>false,
17 )); ?>
18 
19  <p class="note">Fields with <span class="required">*</span> are required.</p>
20 
21  <?php echo $form->errorSummary($model); ?>
22 
23 <div class="row-fluid">
24  <div class="span6">
25 
26  <div class="row">
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'); ?>
30  </div>
31 
32  <div class="row">
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'); ?>
36  </div>
37 
38  <div class="row">
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'); ?>
42  </div>
43 
44  <div class="row">
45  <?php echo $form->labelEx($model,'dob'); ?>
46  <?php echo $form->textField($model,'dob'); ?>
47  <?php echo $form->error($model,'dob'); ?>
48  </div>
49 
50  <div class="row">
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'); ?>
54  </div>
55 
56  <div class="row">
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'); ?>
60  </div>
61 
62  <div class="row">
63  <?php echo $form->labelEx($model,'smoker'); ?>
64  <?php echo $form->checkBox($model,'smoker'); ?>
65  <?php echo $form->error($model,'smoker'); ?>
66  </div>
67 
68  <div class="row">
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'); ?>
72  </div>
73 
74  <div class="row">
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'); ?>
78  </div>
79 
80  <div class="row">
81  <?php echo $form->labelEx($model,'date_left'); ?>
82  <?php echo $form->textField($model,'date_left'); ?>
83  <?php echo $form->error($model,'date_left'); ?>
84  </div>
85 
86  </div>
87 
88  <div class="span6">
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'); ?>
95  </div>
96 
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'); ?>
102  </div>
103 
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'); ?>
109  </div>
110 
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'); ?>
116  </div>
117 
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'); ?>
123  </div>
124 
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'); ?>
130  </div>
131 
132  <div class="row">
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'); ?>
136  </div>
137 
138  <div class="row">
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'); ?>
142  </div>
143 
144  <div class="row">
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'); ?>
148  </div>
149 
150  <div class="row">
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'); ?>
154  </div>
155 
156  </div>
157 
158 </div>
159  <hr />
160 <div class="row-fluid">
161  <div class="span6">
162  <div class="row">
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'); ?>
166  </div>
167 
168  <div class="row">
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'); ?>
172  </div>
173 
174  <div class="row">
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'); ?>
178  </div>
179 
180  <div class="row">
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'); ?>
184  </div>
185 
186  <div class="row">
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'); ?>
190  </div>
191 </div>
192 <div class="span6">
193  <div class="row">
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'); ?>
197  </div>
198 
199  <div class="row">
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'); ?>
203  </div>
204 
205  </div>
206 </div>
207 <hr />
208  <div class="row buttons">
209  <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array('class'=>'btn btn-primary')); ?>
210  </div>
211 <?php $this->endWidget();?>
212 
213 
214 </div><!-- form -->
215 
216 <?php $this->endWidget(); ?> <!-- portlet -->