network_inventory/src/devices/templates/devices/device_list.html

20 lines
533 B
HTML

{% extends "core/base.html" %}
{% load render_table from django_tables2 %}
{% block section_title %}List of General Devices{% endblock %}
{% block content %}
<div class="row mb-3">
<div class="col">
<form action="{% url 'device_create' pk %}">
<input type="submit" value="Add Device" class="btn btn-primary">
</form>
</div>
</div>
<div class="row">
<div class="col">
<div class="table-responsive">
{% render_table devices %}
</div>
</div>
</div>
{% endblock %}