36 lines
980 B
HTML
36 lines
980 B
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
{% for column in columns %}
|
|
<th scope="col">{{ column }}</th>
|
|
{% endfor %}
|
|
{% if row_actions %}
|
|
<th scope="col">{% trans "Actions" %}</th>
|
|
{% endif %}
|
|
</tr>
|
|
</thead>
|
|
{% for row in rows %}
|
|
<tr>
|
|
{% for value in row.data.values %}
|
|
<td>{{ value }}</td>
|
|
{% endfor %}
|
|
{% if row.actions %}
|
|
<td>
|
|
{% for action in row.actions %}
|
|
<a href="{{ action.url }}">
|
|
{{ action.label }}
|
|
</a>
|
|
{% endfor %}
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|