
<ul class="clearfix form-ul material">
    <input type="hidden" name="hid_vendor_id" id="hid_vendor_id" value="<?php if(!empty($models->vendor_id)){echo $models->vendor_id;}else{echo $c_id;}?>">
                        <li class="col-sm-6">
                            <?php
                            if($models->isNewRecord)
                            $models->person_name = "Sales / Accounts";
                            ?>
                            
                                <?php echo $form->textField($models,'person_name',array('data-label'=>'Contact Person <span style="color:red;">*</span>')); ?>
    				 <?php echo $form->error($models,'person_name'); ?>
                            <?php echo $form->hiddenField($models,'id');?>
    			</li>

    			<li class="col-sm-6">
                               <?php echo $form->textField($models, 'designation',array('data-label'=>'Designation')); ?>
                               <?php echo $form->error($models,'designation'); ?>
                        </li>
    			<li class="col-sm-6">
                               <?php echo $form->textField($models, 'contact_phone_no',array('data-label'=>'Phone')); ?>
                                <?php echo $form->error($models,'contact_phone_no'); ?>
                        </li>
    			<li class="col-sm-6">
                                 <?php echo $form->textField($models, 'department',array('data-label'=>'Department ')); ?>
                                <?php echo $form->error($models,'department'); ?>
                        </li>
    			<li class="col-sm-6">
                                 <?php echo $form->textField($models, 'contact_mobile_no',array('data-label'=>'Mobile ')); ?>
                                <?php echo $form->error($models,'contact_mobile_no'); ?>
                        </li>
    			
    			<li class="col-sm-6">
                                <?php echo $form->textField($models, 'contact_email_id',array('data-label'=>'Email ')); ?>
                                <?php echo $form->error($models,'contact_email_id'); ?>
                        </li>
    			<li class="col-sm-6">
                                    <?php echo $form->textArea($models, 'notes', array('title' => 'Please enter notes','data-label'=>'Notes','class'=>'en-text-area')); ?>
                                   <?php echo $form->error($models,'notes'); ?>
                        </li>
                         <li class="col-sm-6">
                                    <?php echo $form->dropDownList($models, 'isActive',array('Y'=>'Active','N'=>'Blocked'), array('title' => 'Status','data-label'=>'Status')); ?>
                                   <?php echo $form->error($models,'isActive'); ?>
                        </li>
    		</ul>

 