{% load rapid_list %}<span class="must_reload"></span>
<style scoped>
    table.object_list > thead > tr > td{
        padding-left: 0.5em;
        padding-right: 0.5em;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
        vertical-align: middle;
    }
    table.object_list > tbody > tr > td{
        padding-left: 0.5em;
        padding-right: 0.5em;
        vertical-align: middle;
    }
    td.list-icons > *{
        margin-right: 1em;
    }
</style>
<h2>{{model.model_name_plural.title}}</h2>
<p>{% for a, u in model.actions %}
	{% if a.action.name != 'list' %}
		<a href="{{ u }}" class="better-in-overlay btn btn-default"><span class="fa {{ a.action.icon }}">{{ a.action.verbose_name.capitalize }}</span></a>
	{% endif %}
{% endfor %}</p>
{% load rapid_filters %}
{% model_filters model %}
<table class="object_list table table-striped">
    <thead><tr>
        {% for f in view.fields %}
        {% field_header f %}
        {% endfor %}
        <td><!--Actions-->&nbsp;</td>
    </tr></thead>
    <tbody>
    {% for o in view.values %}
    <tr>
        {% for v, iter in o.values %}
        {% if iter %}
            <td>
            {% for val, val_data in v %}
                {% show_value val val_data %}
                {% if not forloop.last %}<br>{% endif %}
            {% endfor %}
            </td>
        {% else %}
            <td>{% show_value v.0 v.1 %}</td>
        {% endif %}
        {% endfor %}
        {% instance_actions o %}
    </tr>
    </tbody>
    {% endfor %}
</table>
{% pagination %}
