{% extends 'layout.html' %} {% block content %}

Yeni Kullanıcı Oluştur

{{ form.hidden_tag() }}
{{ form.full_name.label(class="form-label text-light") }} {% if form.full_name.errors %} {{ form.full_name(placeholder="Ad Soyad", class="form-control is-invalid") }}
{% for error in form.full_name.errors %} {{ error }} {% endfor %}
{% else %} {{ form.full_name(placeholder="Ad Soyad", class="form-control") }} {% endif %}
{{ form.username.label(class="form-label text-light") }} {{ form.username(placeholder="Kullanıcı Adı", class="form-control", placeholder="Boş bırakılırsa otomatik oluşturulur") }}
{{ form.email.label(class="form-label text-light") }} {% if form.email.errors %} {{ form.email(placeholder="Email", class="form-control is-invalid") }}
{% for error in form.email.errors %} {{ error }} {% endfor %}
{% else %} {{ form.email(placeholder="Email", class="form-control", type="email") }} {% endif %}
{{ form.phone.label(class="form-label text-light") }} {{ form.phone(placeholder="Telefon", class="form-control") }}
{{ form.password.label(class="form-label text-light") }} {% if form.password.errors %} {{ form.password(placeholder="Şifre", class="form-control is-invalid") }}
{% for error in form.password.errors %} {{ error }} {% endfor %}
{% else %} {{ form.password(placeholder="Şifre", class="form-control") }} {% endif %}
{{ form.confirm_password.label(class="form-label text-light") }} {% if form.confirm_password.errors %} {{ form.confirm_password(placeholder="Şifre Tekrar", class="form-control is-invalid") }}
{% for error in form.confirm_password.errors %} {{ error }} {% endfor %}
{% else %} {{ form.confirm_password(placeholder="Şifre Tekrar", class="form-control") }} {% endif %}
{{ form.role.label(class="form-label text-light") }} {{ form.role(class="form-select") }}
{{ form.status.label(class="form-label text-light") }} {{ form.status(class="form-select") }}
{{ form.submit(class="btn btn-primary") }}
{% endblock content %}