{extends file="layout/auth.tpl"}
{block name=main}

    <div class="signin-wrapper">

      <div class="signin-box">
        <h2 class="slim-logo"><a href="index.html">AUTH<span>PANEL</span></a></h2>
          {if $error}
          <div class="alert alert-danger mg-b-0" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
            <strong>[ERROR]</strong> {$error->listErrors()}
          </div><br>
          {/if}
          {if $msg}
          <div class="alert alert-success mg-b-0" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
            <strong>[SUCCESS]</strong> {$msg}
          </div><br>
          {/if}
        <form method="POST" action="{base_url()}/user/signup">
        <div class="form-group">
          <input type="text" class="form-control" name="user" value="{set_value('user')}" placeholder="Enter your user">
        </div><!-- form-group -->
        <div class="form-group">
          <input type="email" value="{set_value('email')}" class="form-control" name="email" placeholder="Enter your email">
        </div><!-- form-group -->
        <div class="form-group">
          <input type="password" value="{set_value('password')}" class="form-control" name="password" placeholder="Enter your password">
        </div><!-- form-group -->
          <div class="form-group mg-b-50">
          <input type="password" class="form-control" value="{set_value('confirmpassword')}" name="confirmpassword" placeholder="Confirm Pass">
        </div><!-- form-group -->
<!-- form-group -->
          <div class="form-group">
          <input type="text" class="form-control" value="{set_value('customername')}" name="customername" placeholder="Customer Name">
        </div><!-- form-group -->
{if getenv('REG_BONUS_ACTIVE') == 1}
          <div class="form-group">
          <label class="form-control-label">Version: <span class="tx-danger">*</span></label>
          <select class="form-control select2" name="plan" data-placeholder="Choose status" tabindex="-1" aria-hidden="true">
                    <option label="Choose Level"></option>
                    <option value="16" selected>Season 2</option>
                    <option value="4" selected>Season 6</option>
                    <option value="12">Season 4</option>
                    <option value="8">Season 8</option>
                  </select>
        </div>
<!-- form-group -->
          <div class="form-group">
          <input type="text" class="form-control" name="ip" value="{set_value('ip')}" placeholder="Machine IP">
        </div><!-- form-group -->
<!-- form-group -->
          <div class="form-group">
          <input type="text" class="form-control" value="{set_value('hdid')}" name="hdid" placeholder="Hardware ID">
        </div><!-- form-group -->
        {/if}
        <button class="btn btn-primary btn-block btn-signin">Sign Up</button>
        <p class="mg-b-0"> have an account? <a href="{base_url()}/user/signin">Sign In</a></p>
      </div><!-- signin-box -->
                <input type="hidden" name="{csrf_token()}" value="{csrf_hash()}" />
</form>
    </div><!-- signin-wrapper -->

{/block}