<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    <h2 class="modal-title"><?php echo $this->translate('Add New Vendor'); ?></h2>
</div>
<div class="modal-body">
    <?php
    $form = $this->form;
    $form->prepare();
    $form->setAttribute('action', $this->url('add-users', ['action' => 'add-users']));
    $form->setAttribute('method', 'post');
    $form->setAttribute('id', 'add-new-user-form');
    echo $this->form()->openTag($form);
    ?>
    <div align="center" style="background:#fff;">
        <div class="form-controluser" align="left" style="float:none;" >
            <div class="form-group clearfix margintopbottom20">
                <div class="col-sm-4">
                    <div class="col-sm-12">
                        <span><strong>User Type</strong></span>
                        <div class="form-group">
                            <?php echo $this->FormElement($form->get('user_type')); ?>
                            <?php echo $this->formElementErrors($form->get('user_type'), ['class' => 'error']); ?>
                        </div>
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="col-sm-12">
                        <span><strong>First Name</strong></span>
                        <div class="form-group">
                            <?php echo $this->FormElement($form->get('first_name')); ?>
                            <?php echo $this->formElementErrors($form->get('first_name'), ['class' => 'error']); ?>
                        </div>
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="col-sm-12">
                        <span><strong>Last Name</strong></span>
                        <div class="form-group">
                            <?php echo $this->FormElement($form->get('last_name')); ?>
                            <?php echo $this->formElementErrors($form->get('last_name'), ['class' => 'error']); ?>
                        </div>
                    </div>
                </div>

            </div>

            <div class="form-group clearfix margintopbottom20">
                <div class="col-sm-4">
                    <div class="col-sm-12">
                        <span><strong>Email</strong></span>
                        <div class="form-group">
                            <?php echo $this->FormElement($form->get('email')); ?>
                <span class="showerror"><?php echo $this->formElementErrors($form->get('email'), ['class' => 'error']); ?></span>
                        </div>
                    </div>
                </div>


                <div class="col-sm-4">
                    <div class="col-sm-3">
                        <span><strong>Prefix</strong></span>
                        <?php echo $this->formElement($form->get('prefix_contact_no')); ?>
                    </div>
                    <div class="col-sm-9">
                        <span><strong>Mobile No.</strong></span>
                        <div class="form-group">
        <?php echo $this->FormElement($form->get('contact_no')); ?>
        <span class="showerror"><?php echo $this->formElementErrors($form->get('contact_no'), ['class' => 'error']); ?></span>
                        </div>
                    </div>
                </div>
                
                <div class="col-sm-4">
                    <div class="col-sm-12 ">
                        <span><strong>Gender</strong></span>
                        <div class="form-group">
                            <?php echo $this->FormElement($form->get('gender')); ?>
                            <?php echo $this->formElementErrors($form->get('gender'), ['class' => 'error']); ?>
                        </div>    
                    </div>
                </div>

            </div>
            
            
            <div class="form-group clearfix margintopbottom20">
                
                <div class="col-sm-4">
                    <div class="col-sm-12">
                        <span><strong><?php echo $form->get('company_name')->getLabel(); ?></strong></span>
                        <div class="form-group">
                            <?php echo $this->formElement($form->get('company_name')); ?>
                <span class="showerror"><?php echo $this->formElementErrors($form->get('company_name'), ['class' => 'error']); ?></span>
                        </div>
                    </div>
                </div>
                
                <div class="col-sm-4">
                    <div class="col-sm-12">
                        <span><strong><?php echo $form->get('preferred_city')->getLabel(); ?></strong></span>
                        <div class="form-group">
                            <?php echo $this->formElement($form->get('preferred_city')); ?>
                            <?php echo $this->FormElement($form->get('city_search_id')); ?>
                <span class="showerror"><?php echo $this->formElementErrors($form->get('preferred_city'), ['class' => 'error']); ?></span>
                        </div>
                    </div>
                </div>
                
                <div class="col-sm-4">
                    <div class="col-sm-12">
                        <span><strong><?php echo $form->get('duty_type')->getLabel(); ?></strong></span>
                        <div class="form-group">
                            <?php echo $this->formElement($form->get('duty_type')); ?>
                <span class="showerror"><?php echo $this->formElementErrors($form->get('duty_type'), ['class' => 'error']); ?></span>
                        </div>
                    </div>
                </div>
                
                
               


            </div>
             

            <div class="form-group clearfix margintopbottom20">                

                <div class="col-sm-4">
                    <div class="col-sm-12 ">
                        <span><strong>Nationality</strong></span>
                        <div class="form-group">
                            <?php echo $this->FormElement($form->get('nationality')); ?>
                            <?php echo $this->formElement($form->get('nationality_value')); ?>
                            <?php echo $this->formElementErrors($form->get('nationality'), ['class' => 'error']); ?>
                        </div>    
                    </div>
                </div>

                <div class="col-sm-8">
                <div class="col-sm-12 ">
                    <?php echo $this->FormElement($form->get('save_login_detail')); ?>
                </div>
                </div>

            </div>
        </div>
    </div>
    <?php echo $this->form()->closeTag(); ?>  
</div>
<div class="modal-footer" style=" padding-top:2px !important;">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
    </div>