refactor: moving to my own template, using fomantic instead of uikit. removing uikit, and some other removed stuff
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
{% extends "admin/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% if item_list %}
|
||||
<ul>
|
||||
{% for item in item_list %}
|
||||
<li>{{ item.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
No Items found.
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
47
templates/admin/items/item_list.jinja
Normal file
47
templates/admin/items/item_list.jinja
Normal file
@@ -0,0 +1,47 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user