{% extends "base.html" %} {% block title %}Customers — Jason Studio{% endblock %} {% block content %}

Customers

{% if show_inactive %} Hide Inactive {% else %} Show Inactive {% endif %} Add Customer Dashboard
{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %} {% if customers %} {% for customer in customers %}
{{ customer.user.first_name|default:"—" }} {{ customer.user.last_name|default:"" }}
{% if customer.company_name %}{{ customer.company_name }}{% endif %}
{% if customer.is_active %} Active {% else %} Inactive {% endif %}
{% if customer.user.email %}{{ customer.user.email }}{% endif %} {% if customer.phone %}{{ customer.phone }}{% endif %} {{ customer.events.count }} event{{ customer.events.count|pluralize }}
Edit
{% csrf_token %} {% if customer.is_active %} {% else %} {% endif %}
{% if not customer.selections.count and not customer.orders.count and not customer.events.count %} {% endif %}
{% empty %}
No customers yet. Click "Add Customer" to create one.
{% endfor %}
{% for customer in customers %} {% endfor %}
Name Company Email Phone Status Events
{{ customer.user.first_name|default:"—" }} {{ customer.user.last_name|default:"" }} {{ customer.company_name|default:"—" }} {{ customer.user.email|default:"—" }} {{ customer.phone|default:"—" }} {% if customer.is_active %} Active {% else %} Inactive {% endif %} {{ customer.events.count }} Edit
{% csrf_token %} {% if customer.is_active %} {% else %} {% endif %}
{% if not customer.selections.count and not customer.orders.count and not customer.events.count %} {% endif %}
{% for customer in customers %} {% if not customer.selections.count and not customer.orders.count and not customer.events.count %} {% endif %} {% endfor %} {% else %}
No customers yet. Click "Add Customer" to create one.
{% endif %} {% endblock %}