{% if settings['register_page'] == 2 %} 
{% include 'header.twig' %}
<!-- Main variables *content* -->
<div class="container">
  <div class="row">
    <div class="col-md-8 col-md-offset-2">        
      <div class="well"> 

        {% if errorText %}
        <div class="alert alert-dismissible alert-danger">
          <button type="button" class="close" data-dismiss="alert">x</button>
          {{ errorText }}
        </div>
        {% endif %}
        
        {% if successText %}
        <div class="alert alert-dismissible alert-success">
          <button type="button" class="close" data-dismiss="alert"> x</button>
          {{ successText }}
        </div>
        {% endif %}
        
        <form action="" method="post" class="component_form_group component_checkbox">

          <div class="form-group">
            <label for="username" class="control-label">Username</label>
            <input type="text" class="form-control" id="username" name="username" value="{{ data['username'] }}">
          </div>

          {% if settings['name_fileds'] == 1 %} 
          <div class="form-group">
            <label for="firstname" class="control-label">Name</label>
            <input type="text" class="form-control" id="firstname" name="name" value="{{ data['name'] }}">
          </div>
          {% endif %}

          <div class="form-group">
            <label for="email" class="control-label">Email</label>
            <input type="email" class="form-control" id="email" name="email" value="{{ data['email'] }}">
          </div>
          
          {% if settings['skype_area'] == 2 %}
          <div class="form-group">
            <label for="skype" class="control-label">Phone No.</label>
            <input type="text" class="form-control" id="skype" name="telephone" value="{{ data['telephone'] }}">
          </div>
          {% endif %}
          
          {% if settings['whatsapp_field'] == 1 %}
          <div class="form-group">
            <label for="whatsapp" class="control-label">Whatsapp No.</label>
            <input type="text" class="form-control" id="whatsapp" name="telephone" value="{{ data['telephone'] }}">
          </div>
          {% endif %}

          {% if settings['telegram_field'] == 1 %}
          <div class="form-group">
            <label for="telegram" class="control-label">Telegram</label>
            <input type="text" class="form-control" id="telegram" name="telegram" value="{{ data['telegram'] }}">
          </div>
          {% endif %}

          {% if settings['website_field'] == 1 %}
          <div class="form-group">
            <label for="website" class="control-label">Website</label>
            <input type="text" class="form-control" id="website" name="website" value="{{ data['website'] }}">
          </div>
          {% endif %}

          <div class="form-group">
            <label for="password" class="control-label">Password</label>
            <input type="password" class="form-control" id="password" name="password">
          </div>

          <div class="form-group">
            <label for="confirm" class="control-label">Confirm password</label>
            <input type="password" class="form-control" id="confirm" name="password_again">
          </div>

          {% if captcha %}
          <div class="form-group">
            <div class="g-recaptcha" data-sitekey="{{ captchaKey }}"></div>
          </div>
          {% endif %}


          {% if settings['terms_checkbox'] == 2 %}
          <div class="mt-4 custom-control custom-checkbox text-left checkbox">
            <input type="checkbox" name="terms" value="1">{{ lang['signup.accept_terms_text'] }}
          </div>
          {% endif %}

          <div class="component_button_submit">
            <div class="form-group">
              <div class="">
                <button type="submit" class="btn btn-primary">Sign up</button>
              </div>
            </div>
          </div>

          <div class="text-center">Already have an account?<a href="/" class="sign-up-center-signin-link">Sign in</a></div>
        </form>
      </div>
    </div>
  </div>
</div>

<div class="container">
  <div class="row sign-up-center-alignment" style="justify-content: center;margin-top:-5px">
    <div class="col-lg-5">
      {% if contentText2 %}
      <div class="card mt- mb-5">
        {{ contentText2 }}
      </div>
      {% endif %}
    </div>
  </div>
</div>

{% include 'footer.twig' %}
{% endif %}
