{% if settings['register_page'] == 2 %}
{% include 'header.twig' %}
<div class="component_navbar"></div>
<div class="component_navbar_sub"></div>
</div>
<div class="wrapper-content">
  <div class="wrapper-content__header"></div>
  <div class="wrapper-content__body">
    <!-- Main variables *content* -->
    <div id="block_70">
      <div class="sign-in">
        <div class="bg"></div>
        <div class="divider-top"></div>
        <div class="divider-bottom"></div>
        <div class="container">
          <div class="row sign-up-center-alignment" style="justify-content: center;">
            <div class="col-lg-5 col-md-6 col-sm-12 lud">
              {% if contentText %}
              <div class="card mb-4">
                {{ contentText }}
              </div>
              {% endif %}
              <div class="component_card">
                <div class="card">
                  {% if errorText %}
                  <div class="alert alert-dismissible alert-danger">
                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                    {{ errorText }}
                  </div>
                  {% endif %}
                  {% if successText %}
                  <div class="alert alert-dismissible alert-success">
                    <button type="button" class="close" data-dismiss="alert">&times;</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 %}

                    {% if settings['whatsapp_field'] == 1 %}
                    <div class="form-group">
                      <label for="whatsapp" class="control-label">WhatsApp</label>
                      <input type="text" class="form-control" id="whatsapp" name="whatsapp" value="{{ data['whatsapp'] }}">
                    </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="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 %}

                    <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 settings["recaptcha"] == 2 %}
                    <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-block btn-big-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>
      </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-5 mb-5">
          {{ contentText2 }}
        </div>
        {% endif %}
      </div>
    </div>
  </div>

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