{% extends "base.html" %} {% block title %}{{ "ویرایش مشتری" if customer else "حساب مشتری" }} — {{ APP_NAME }}{% endblock %} {% block content %}
{{ form.hidden_tag() }}
{% if customer and customer.photo_path %} {% else %}
👤
{% endif %}
{{ form.photo.label }} {{ form.photo() }}
{{ form.first_name.label }} {{ form.first_name() }}
{{ form.last_name.label }} {{ form.last_name() }}
{{ form.city.label }} {{ form.city() }}
{{ form.gender.label }} {{ form.gender() }}
{{ form.landline_phone.label }} {{ form.landline_phone() }}
{{ form.mobile_phone.label }} {{ form.mobile_phone() }}
{{ form.birth_date.label }} {{ form.birth_date(placeholder="مثال: 1370/06/15 (شمسی)") }}
{{ form.customer_code.label }} {{ form.customer_code() }}
{{ form.referrer_text.label }} {{ form.referrer_text() }}
{{ form.how_found.label }} {{ form.how_found() }}
{{ form.instagram_id.label }} {{ form.instagram_id(placeholder="@username") }}
{{ form.status.label }} {{ form.status() }}
{{ form.address.label }} {{ form.address(rows=3) }}
{{ form.description.label }} {{ form.description(rows=3) }}
{% for field in form if field.errors %} {% for err in field.errors %}
{{ field.label.text }}: {{ err }}
{% endfor %} {% endfor %}
{% endblock %}