{% from theme("security/_macros.html") import render_field_with_errors, render_field, render_button %}
{% extends theme("base.html") %}

{% block content %}
<div class="col-12 col-sm-12 col-lg-12">
{% include theme("security/_messages.html") %}
<h1>Register</h1>


<form class="form-horizontal" role="form" action="{{ url_for_security('register') }}" method="POST" name="register_user_form">

  {{ register_user_form.hidden_tag() }}
  {{ render_field_with_errors(register_user_form.email, class="form-control", placeholder="you@domain.com") }}
  {{ render_field_with_errors(register_user_form.password, class="form-control") }}
  {% if register_user_form.password_confirm %}
    {{ render_field_with_errors(register_user_form.password_confirm, class="form-control") }}
  {% endif %}
  {{ render_button(register_user_form.submit, class="btn btn-primary") }}

</form>

{% include theme("security/_menu.html") %}

</div>
{% endblock %}