{% extends "core/base.html" %}
{% load render_table from django_tables2 %}
{% block section_title %}List of Customers{% endblock %}
{% block content %}
{% if request.user.is_superuser %}
<div class="row mb-3">
    <div class="col">
        <form action="{% url 'customer_create' %}">
            <input type="submit" value="Add Customer" class="btn btn-primary">
        </form>
    </div>
</div>
{% endif %}
<div class="row">
    <div class="col">
        {% render_table customers %}
    </div>
</div>

{% endblock %}
