miniweb/templates/admin/items/item_list.jinja

47 lines
907 B
Django/Jinja

{% extends "admin/base.jinja" %}
{% block content %}
{% block search_bar %}
<div class="ui icon input">
<input type="text" placeholder="Search...">
<i class="circular search link icon"></i>
</div>
{% endblock %}
{% if item_list %}
<div class="ui short scrolling container">
<table class="ui very compact celled table head stuck unstackable">
<caption>Table Caption</caption>
<thead>
<tr>
<th>Header1</th>
<th>Header2</th>
<th>Header3</th>
</tr>
</thead>
<tbody>
{% for item in item_list %}
<tr>
<td>{{ item.name}}</td>
<td>{{ item.age }}</td>
<td>{{ item }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
</tfoot>
</table>
</div>
{% set x="name" %}
<li>{{ item[x] }}</li>
</ul>
{% else %}
No Items found.
{% endif %}
{% endblock content %}