{% extends "base.html" %} {% set title = "New customer" %} {% macro field(name, label, type="text", placeholder="") %} {% if errors[name] %}{{ errors[name] }}{% endif %} {% endmacro %} {% block main %}

New customer

{% include "_summary.html" %} {{ field("Name", "Name") }}
Gender {% if errors.Gender %}{{ errors.Gender }}{% endif %}
{{ field("Birthdate", "Date of birth", "date") }} {{ field("Place", "Place of birth") }} {{ field("Address", "Address") }} {{ field("Phone", "Mobile phone", "tel", "0812-3456-7890") }} {{ field("Email", "E-mail", "email") }} {{ field("Password", "Online password (optional)", "password") }} {{ field("ConfirmPassword", "Repeat the password", "password") }}
{% endblock %}