
 
 
<section id="main" class="container-fluid">
	<div class="row">
		<section id="content-wrapper" class="form-elements">
			<div class="site-content-title">
				<h2 class="float-xs-left content-title-main"> Profile</h2>
			</div>
		</section>
	 	<div class="content">
	 		<div class="row">
				<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-xs-12">	
					<form class="form-horizontal" name="services-form" id="services-form" enctype="multipart/form-data" method="post" action="{$data.base_url}user/profile/">
		                	<input  type="hidden" name="data[id]" value="{$data.user_details.id}">
							<div class="element-form">
							    <div class="col-sm-1 col-xs-12 text-xs-right">
							        <label>Name <span>*</span></label>
							    </div>
							    <div class=" col-sm-5 col-xs-12">
							        <div class="form-group">
							            
							            <input  class="form-control" type="text" id="name" name="data[name]" maxlength="55" value="{$data.user_details.name}" required>
							        </div>
							    </div>
							</div>
							<div class="element-form">
							    <div class="col-sm-1 col-xs-12 text-xs-right">
							        <label>Email <span>*</span></label>
							    </div>
							    <div class=" col-sm-5 col-xs-12">
							        <div class="form-group">
							            
							           	<input  class="form-control" id="email" type="email" name="data[email]" maxlength="55" value="{$data.user_details.email}" required>
							        </div>
							    </div>
							</div>
							<div class="element-form">
							    <div class="col-sm-1 col-xs-12 text-xs-right">
							        <label>Number <span>*</span></label>
							    </div>
							    <div class=" col-sm-5 col-xs-12">
							        <div class="form-group">
							            
							           	<input  class="form-control" id="phone" type="text" name="data[phone]" value="{$data.user_details.phone}"  maxlength="10" minlength="10" required>
							        </div>
							    </div>
							</div>
							<div class="element-form">
							    <div class="col-sm-1 col-xs-12 text-xs-right">
							        <label>Gender <span>*</span></label>
							    </div>
							    <div class=" col-sm-5 col-xs-12">
							        <div class="form-group">
							          	<select class="form-control" name="data[gender]" id="gender" required>
		                                     <option value="MALE" {if $data.user_details.gender eq 'MALE'} selected="selected" {/if} >MALE</option>
		                                     <option value="FEMALE" {if $data.user_details.gender eq 'FEMALE'} selected="selected" {/if}>FEMALE</option>
		                                     <option value="OTHER" {if $data.user_details.gender eq 'OTHER'} selected="selected" {/if}>OTHER</option>
	                                	</select>
							        </div>
							    </div>
							</div>
							<div class="element-form">
							    <div class="col-sm-1 col-xs-12 text-xs-right">
							        <label>Address <span>*</span></label>
							    </div>
							    <div class=" col-sm-11 col-xs-12">
							        <div class="form-group">
							           <textarea class="form-control" rows="5" name="data[address]" id="address" required>{$data.user_details.address}</textarea>
							        </div>
							    </div>
							</div>
							<div class="element-form">
							    <div class="col-sm-1 col-xs-12 text-xs-right">
							        <label>Password <span>*</span></label>
							    </div>
							    <div class=" col-sm-5 col-xs-12">
							        <div class="form-group">
							          <input  class="form-control" type="password" id="pwd"  name="data[pwd]" value="{$data.user_details.pwd}" minlength="6" maxlength="55" required>
							        </div>
							    </div>
							</div>
							
							<div class="element-form">
							    <div class="col-sm-1 col-xs-12 text-xs-right">
							        <label>Image <span>*</span></label>
							    </div>
							    <div class=" col-sm-5 col-xs-12">
							        <div class="form-group">
							          	<input type="file" class="fileinput btn-primary" name="pics" id="pics" title="Browse file" />
							        </div>
							    </div>
							    <div class=" col-sm-5 col-xs-12">
							        {if $data.user_details.pics neq ''} 
							         	<img src="{$data.base_assets}images/users/{$data.user_details.pics}" style="width:30px;" >
							        {/if}
							    </div>
							  
							</div>
							<div class="element-form">
								<div class="col-xl-12 col-lg-12 col-sm-12 col-md-12 col-xs-12">
									<input type="submit" class="btn btn-primary float-xs-right" value="Update" name="updateuser" >
								</div>
							</div>
		            </form>
	                
	             </div>
			</div>
		</div>
	</div>
</section>
 
 

 