<?php 
/**
 * Screen userssettings\index
 * @version 1.0.1
 * @package Backend\Users
 * 
*/
$user = $this->data['user'];


?>
<div class="row" >
<div class="col-lg-12" >
<h3><?=R('page_user_management_title') ?></h3>
<div class="panel panel-default">
 <div class="panel-body">
	<h4><?= R('user_profile') ?></h4>
</div>
</div>
<?php $this->load('common/message',$this) ?>
<div class="panel panel-default">
<div class="panel-body">
<form id="form1" class="form-horizontal" action="<?= __SITEBASE ?>/usersettings/save"  method="post" autocomplete="off">
	<div class="form-group ">
   		<label class="col-sm-2 control-label"><?= R('label_contact') ?>:</label>
   		<div class="col-sm-5">
    		<input required type="text" class="form-control" maxlength="100" name="contact" placeholder="<?= R('label_contact') ?>" value="<?= val($user,'contact') ?>">
    	</div>
    </div>
    <div class="form-group">
    	<label class="col-sm-2 control-label"></label>
   		 <a href="#" class="btn btn-link" id="showpasswordlink" onclick="javascript:$('#showpassword').slideDown();$(this).hide();$('#cancelpasswordlink').show();"><?= R("label_changepassword") ?></a>
   		 <a href="#" style="display:none" class="btn btn-link" id="cancelpasswordlink" onclick="javascript:$('#showpassword').slideUp();$(this).hide();$('#showpasswordlink').show();"><?= R("label_cancel") ?></a>
     </div>
    <div id="showpassword" style="display:none">
 	   <div class="form-group ">
   		<label class="col-sm-2 control-label"><?= R('label_password') ?>:</label>
   		<div class="col-sm-5">
    		<input maxlength="100" <?=$action == "new" ? "required":"" ?> class="form-control" onchange="javascript:$('#password_changed').val('1');" type="password" name="passwd" placeholder="<?= R('label_password') ?>" value="">
    	</div>
	    </div>
	     <div class="form-group ">
	   		<label class="col-sm-2 control-label"><?= R('label_confirmpassword') ?>:</label>
	   		<div class="col-sm-5">
	    		<input maxlength="100" <?=$action == "new" ? "required":"" ?> class="form-control" type="password" name="confirm_passwd" placeholder="<?= R('label_confirmpassword') ?>" value="">
	    	</div>
	    </div>
     </div>
     <p>&nbsp;</p>
    <div class="col-sm-7">
    <div class="pull-right">
    	<button type="submit" class="btn btn-default" name="btnsubmit"><?= R('btn_save') ?></button>
    	<a href="<?= __SITEBASE ?>/" class="btn btn-default" role="button"><?= R('btn_cancel') ?></a>
    	<input type="hidden" id="password_changed" name="password_changed" value="">
      
    </div>
    </div>
</form>
</div>
</div>
</div>
</div>

