{% load custom_tags_and_filters %}
{% csrf_token %}
{% button type="export" value="Export" onclick="load_usage_data('"|concat:tool_id|concat:"', true);" %}
{% button type="save" submit=False value="Update" onclick="load_usage_data('"|concat:tool_id|concat:"');" icon="glyphicon-refresh" %}
{% if usage_data_table.rows %} {% for header in usage_data_table.flat_headers %} {% endfor %} {% for row in usage_data_table.flat_rows %} {% for item in row %} {% endfor %} {% endfor %}
{{ header }}
{% if item|class_name == "list" %}{{ item|join:", " }}{% else %}{{ item }}{% endif %}
{% else %} No usage data was found between these dates {% endif %}