{% include 'header.twig' %}
<div class="userwrapper">
    <!-- Main variables *content* -->
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <div class="well">
                    <form method="post" action="">
                        <div class="form-group">
                            {% if errorText %}
								<div class="alert alert-dismissible alert-danger">
								  <button type="button" class="close" data-dismiss="alert">×</button>
								  {{ errorText }}
								</div>
							  {% endif %}
							  {% if successText %}
								<div class="alert alert-dismissible alert-success">
								  <button type="button" class="close" data-dismiss="alert">×</button>
								  {{ successText }}
								</div>
							  {% endif %}
                            <label for="regUsername" class="control-label">{{ lang['signup.username'] }}</label>
                            <input type="text" class="form-control" name="username" value="{{ data['username'] }}">
                        </div>
                        {% if settings['name_secret'] == 2 %}
                            <div class="fc-home">
                                <label for="regName" class="control-label">{{ lang['signup.first_name'] }}</label>
                                <input type="text" class="form-control"  name="first_name" value="{{ data['first_name'] }}">
                            </div><!-- fc-home -->
                            <div class="fc-home">
                                <label for="regSurname" class="control-label">{{ lang['signup.last_name'] }}</label>
                                <input type="text" class="form-control"  name="last_name" value="{{ data['last_name'] }}">
                            </div><!-- fc-home -->	
							{% endif %}
                        <div class="form-group">
                            <label for="regMail" class="control-label">{{ lang['signup.email'] }}</label>
                            <input type="text" class="form-control" name="email" value="{{ data['email'] }}">
                        </div>
                        {% if settings['skype_area'] == 2 %}
                            <div class="fc-home">
                                <label for="regPhone" class="control-label">{{ lang['signup.telephone'] }}</label>
                                <input type="text" class="form-control" name="telephone" value="{{ data['telephone'] }}">
                            </div><!-- fc-home -->	
							{% endif %}
                        <div class="form-group">
                            <label for="regPass" class="control-label">{{ lang['signup.password'] }}</label>
                            <input type="password" class="form-control" name="password">
                        </div>
                        <div class="form-group">
                            <label for="reregPass" class="control-label">Confirm password</label>
                            <input type="password" class="form-control" name="password_again">
                        </div>
                         <div class="g-recaptcha" data-sitekey="{{ captchaKey }}"></div><br>
                         {% if settings['terms_checkbox'] == 2 %}
							  <div class="checkbox">
								<label>
								  <input type="checkbox" name="terms" value="1">{{ lang['signup.accept_terms_text'] }}
								</label>
							  </div>
							{% endif %}
                        <button type="submit" class="btn btn-primary">Register</button>
                        <span class="pull-right pull-right-middle">Already have an account? <a href="/">Sign
                                in</a></span>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{% for lang in site['languages'] %}
  {% if lang['active'] %}
    <script src="https://www.google.com/recaptcha/api.js?hl={{ lang['code'] }}"></script>
  {% endif %}
{% endfor %}

{% include 'footer.twig' %}