network_inventory/customers/templates/customers/customer_list.html

23 lines
578 B
HTML

{% 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">
<div class="table-responsive">
{% render_table customers %}
</div>
</div>
</div>
{% endblock %}