
        <div class="box box-primary">
        <!-- /.box-header -->
        <div class="box-body">
          <div class="row">
            <div class="col-md-6">
              <?= $this->Form->create($cmsuser,array('enctype'=>'multipart/form-data')) ?>
              <div class="form-group">
            	<?php 
	            	echo $this->Form->input('previous_img_path', array('type' => 'hidden','value'=>$cmsuser['img_path']));
	            	echo $this->Form->input('previous_logo', array('type' => 'hidden','value'=>$cmsuser['logo']));
	            	echo $this->Form->input('language', array('options' => $languages, 'class'=>'form-control'));
            	?>
              </div>
              <!-- /.form-group -->
              <div class="form-group">
                <?php echo $this->Form->input('stripe_customer_id', array('type'=>'text', 'class' => 'form-control', 'placeholder' => __('Stripe Customer Id')));?>
              </div>
              <!-- /.form-group -->
              <div class="form-group">
                <?php echo $this->Form->input('ip', array('label'=>'IP Addresses','type'=>'text', 'class' => 'form-control'));?>
              </div>
              <!-- /.form-group -->
              <div class="form-group">
                <?php echo $this->Form->input('username', array('class' => 'form-control required', 'placeholder' => __('Username')));?>
              </div>
              <!-- /.form-group -->
              <div class="form-group">
                <?php  echo $this->Form->input('password', array('class' => 'form-control required', 'placeholder' => __('Password')));?>
              </div>
              <!-- /.form-group -->
              <div class="form-group">
                <?php echo $this->Form->input('retype_password', array('type'=>'password','id' => 'retype_password', 'class' => 'form-control required', 'placeholder' => __('Retype Password'), 'value' => $cmsuser->password));?>
              </div>
              <!-- /.form-group -->
              <div class="form-group">
                <?php echo $this->Form->input('email', array('class' => 'form-control required', 'placeholder' => __('Email')));?>
              </div>
              <div class="form-group">
                <?php echo $this->Form->input('phone', array('type'=>'text','class' => 'form-control required', 'placeholder' => __('Phone')));?>
              </div>

              <!-- /.form-group -->
            </div>

              <div class="col-md-6">

                  <!-- /.form-group -->
                  <div class="form-group">
                      <?php echo $this->Form->input('ip', array('label'=>'IP Addresses','type'=>'text', 'class' => 'form-control'));?>
                  </div>
                  <!-- /.form-group -->
                  <div class="form-group">
                      <?php echo $this->Form->input('username', array('class' => 'form-control required', 'placeholder' => __('Username')));?>
                  </div>
                  <!-- /.form-group -->
                  <div class="form-group">
                      <?php  echo $this->Form->input('password', array('class' => 'form-control required', 'placeholder' => __('Password')));?>
                  </div>
                  <!-- /.form-group -->
                  <div class="form-group">
                      <?php echo $this->Form->input('retype_password', array('type'=>'password','id' => 'retype_password', 'class' => 'form-control required', 'placeholder' => __('Retype Password'), 'value' => $cmsuser->password));?>
                  </div>
                  <!-- /.form-group -->
                  <div class="form-group">
                      <?php echo $this->Form->input('email', array('class' => 'form-control required', 'placeholder' => __('Email')));?>
                  </div>
                  <div class="form-group">
                      <?php echo $this->Form->input('phone', array('type'=>'text','class' => 'form-control required', 'placeholder' => __('Phone')));?>
                  </div>

                  <!-- /.form-group -->
              </div>
          </div>
          <!-- /.row -->
        </div>
        <!-- /.box-body -->
        <div class="box-footer">
          <?= $this->Form->button(__('Submit'), ['class' => 'btn btn-primary']) ?>
        </div>
        <?= $this->Form->end() ?>
      </div>
      
<style type="text/css">

    .error-message {
        color: #ff0000;
    }


</style>
<script>
    $(window).load(function () {
        $("#retype_password").change(function () {
            if ($(this).val() != $("#password").val()) {
                var nextElement = $(this).next();
                if (!nextElement.hasClass("error-message")) {
                    $(this).after('<div class="error-message">Passwords do not match</div>');
                }
            } else {
                $('.error-message').hide();
            }
        });

    });
</script>
