<div id="password_form">

     <?php echo form_open("auth/change_password/" . $this->uri->segment(3), array('id'=>'change_password','class'=>'form-horizontal', 'noredirect' => 'noredirect')); ?>
      <div style="padding:30px 30px 0 30px">
      <?php

        $loggedinusername = isset($username) ? $username : $this->session->userdata('username');

      ?>

        <div class="control-group required">
            <label class="control-label" for="old">Old password</label>
             <div class="controls">
                <input id="old" type="password" name="old" value="<?php echo set_value('old');?>">
                 <?php $this->load->view('common/show-password-btn.php'); ?>
             </div>
        </div>

         <div class="control-group required">
            <label class="control-label" for="new">New password</label>
             <div class="controls">
                <input id="new" type="password" name="new" value="<?php echo set_value('new');?>">
                 <?php $this->load->view('common/show-password-btn.php'); ?>
             </div>
        </div>

         <div class="control-group required">
            <label class="control-label" for="new_confirm">Confirm new password</label>
             <div class="controls">
                <input id="new_confirm" type="password" name="new_confirm" value="<?php echo set_value('new_confirm');?>">
                 <?php $this->load->view('common/show-password-btn.php'); ?>
             </div>
        </div>
      <div id="formInfoMessage" class="margin-top"><?php if (isset($message) && $message != '') echo $message; ?></div>

  </div>

  <div class="modal-footer">
    <button class="btn btn-large btnCancel" type="button" data-dismiss="modal">Cancel</button>
    <button type="submit" class="btn btn-large btn-primary">
        Save
    </button>
  </div>

  <?php echo form_close();?>
  <script>
      var minPasswordLength = <?= $minPasswordLength ?>;
      var passwordComplexity = <?= $passwordComplexity ?>;
  </script>

  <?php $this->carabiner->display('change_password'); ?>
</div>
