{% extends "shelf-security/base.html" %}
{% from "shelf-security/_macros.html" import render_field_with_errors, render_field, render_errors, render_menu with context %}

{% block title %}NEW TO SHELF ?{% endblock %}

{% block form %}
  {{ register_user_form.hidden_tag() }}
  {{ render_field_with_errors(register_user_form.email, "user", class="form-control", placeholder="Email") }}
  {{ render_field_with_errors(register_user_form.password, "lock", class="form-control", placeholder="Password") }}
  {% if register_user_form.password_confirm %}
    {{ render_field_with_errors(register_user_form.password_confirm, "lock", class="form-control", placeholder="Password") }}
  {% endif %}
  {{ render_field(register_user_form.submit, class="btn btn-default") }}

  {{ render_menu("register") }}

  {{ render_errors(register_user_form) }}
{% endblock %}