network_inventory/customers/templates/customers/customer_list.html

21 lines
520 B
HTML
Raw Normal View History

2020-01-11 17:41:03 +01:00
{% extends "core/base.html" %}
2019-08-02 13:05:42 +02:00
{% load render_table from django_tables2 %}
2019-06-10 21:56:21 +02:00
{% block section_title %}List of Customers{% endblock %}
{% block content %}
2020-05-23 14:18:16 +02:00
{% 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>
2019-06-10 21:56:21 +02:00
{% endblock %}