2016-07-26 14:58:37 -04:00
|
|
|
{% extends '_base.html' %}
|
|
|
|
{% load helpers %}
|
|
|
|
|
|
|
|
{% block title %}Tenants{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="pull-right">
|
|
|
|
{% if perms.tenancy.add_tenant %}
|
|
|
|
<a href="{% url 'tenancy:tenant_add' %}" class="btn btn-primary">
|
2016-08-01 13:29:45 -04:00
|
|
|
<span class="fa fa-plus" aria-hidden="true"></span>
|
2016-07-26 14:58:37 -04:00
|
|
|
Add a tenant
|
|
|
|
</a>
|
2016-08-15 17:57:17 -04:00
|
|
|
<a href="{% url 'tenancy:tenant_import' %}" class="btn btn-info">
|
|
|
|
<span class="fa fa-download" aria-hidden="true"></span>
|
|
|
|
Import tenants
|
|
|
|
</a>
|
2016-07-26 14:58:37 -04:00
|
|
|
{% endif %}
|
|
|
|
{% include 'inc/export_button.html' with obj_type='tenants' %}
|
|
|
|
</div>
|
|
|
|
<h1>Tenants</h1>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9">
|
|
|
|
{% include 'utilities/obj_table.html' with bulk_edit_url='tenancy:tenant_bulk_edit' bulk_delete_url='tenancy:tenant_bulk_delete' %}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
2016-07-29 12:51:23 -04:00
|
|
|
{% include 'inc/search_panel.html' %}
|
2016-07-26 14:58:37 -04:00
|
|
|
{% include 'inc/filter_panel.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|