<nav class="large-3 medium-4 columns" id="actions-sidebar">
      <?= $this->element('admin_sidebar') ?>
</nav>
<div class="users form large-9 medium-8 columns content content-wrapper">
    
    <?= $this->Form->create($user,  ['type' => 'file']) ?>
    <fieldset>
	<div class="col-md-6">
        <legend><?= __('Edit User') ?></legend></div>
		<div class="col-md-6">
         <div><?= $this->Html->link(__('List Users'), ['controller'=>'Users','action' => 'index'],['class' => 'green-btn']) ?> </div></div>
		<div class="addmenu-col">
		<fieldset class="fieldset2" >
		<div class="column-box">
        <?php
            echo $this->Form->input('username');
            echo $this->Form->input('password');
           // echo $this->Form->input('password',array('value' => '','autocomplete'=>'off'));
            
            echo $this->Form->input('firstname', ['label' => ['text' => __('First Name: ')],'required' => false]);
            echo $this->Form->input('lastname', ['label' => ['text' => __('Last Name: ')],'required' => false]);  
            echo $this->Form->input('gender', ['label' => ['text' => __('Gender: ')],'empty'=>'select','options'=>$gender]); 
            echo $this->Form->input('dob',
                    array(
                       'class'=>'datepicker',
                       'type'=>'text',
                       'label' =>'Date of Birth: '
                    )
            );
?>
			</div>
 			</fieldset>
			<fieldset class="fieldset2" >
			<div class="column-box">
				<?php			
            echo $this->Form->input('email', ['label' => ['text' => __('Email: ')],]);         
            echo $this->Form->input('phoneno', ['class' => __('add-column'),'type'=>'text','required' => false]);  
            echo $this->Form->input('address', ['label' => ['text' => __('Address: ')],'required' => false]);  
            echo $this->Form->input('City',['required' => false]);
            echo $this->Form->input('State',['required' => false]);
            echo $this->Form->input('Country',['required' => false]);
            echo $this->Form->input('Zipcode',['required' => false]);
           ?>
			</div>
			</fieldset>
			<fieldset class="fieldset2" >
			<div class="column-box">
				<?php
            echo $this->Form->input('panno', ['label' => ['text' => __('Pan No: ')],]);
            /*echo $this->Form->input('photo', [
                                                'label' => 'Image',
                                                'type' => 'file',
                                                'required' => false
                                                ]);*/
            echo $this->Form->input('group_id', ['empty'=>'select','options' => $groups]);
            echo $this->Form->input('company_id', ['class' => __('add-column'),'label' =>'User Company Name:','empty'=>'select user company','options' => $usercompanies]);
	    echo $this->Form->input('branch_id', ['class' => __('add-column'),'label' =>'User Branch Address:','empty'=>'select branch','options' => $userbranches]);
                                
        ?>
   </div>
			</fieldset>
		</div>
    </fieldset>
	<div class = "add-button">
    <?= $this->Form->button(__('Submit'),['class' => __('green-btn')]) ?>
	</div>
<div class="btn-link"><input type="button" value="Back" onclick="window.history.back()" class="green-btn new_back" /> </div>
    <?= $this->Form->end() ?>
</div>
